Skip to content

FELIX-6879 - Framework: do not fail a dynamic import if the package is - #616

Open
jczpqf wants to merge 1 commit into
apache:masterfrom
jczpqf:felix-6879
Open

jczpqf wants to merge 1 commit into
apache:masterfrom
jczpqf:felix-6879

Conversation

@jczpqf

@jczpqf jczpqf commented Dec 1, 2026

Copy link
Copy Markdown

When performing a dynamic import, check to see if the package is imported already. It was possible for two threads to enter the resolve method at the same time and the successful resolution on one thread to cause the other thread to not find the BundleRevision. See https://issues.apache.org/jira/browse/FELIX-6879 for more information.

already imported

When performing a dynamic import, check to see if the package
is imported already. It was possible for two threads to enter the resolve
method at the same time and the successful resolution on one thread
to cause the other thread to not find the BundleRevision.
@jczpqf

jczpqf commented Dec 1, 2026

Copy link
Copy Markdown
Author

It might help when/if reviewing to hide white spaces on the diff.

@paulrutter

Copy link
Copy Markdown
Contributor

@jczpqf Can you force-push with the right use of whitespaces to reduce the diff?

@jczpqf

jczpqf commented Dec 2, 2026 •

Copy link
Copy Markdown
Author

@paulrutter As part of my changes I wrapped a good portion of code in a new if statement and I indented the wrapped code. Are you asking me to restructure my if statement somehow so I don't need to indent? It might help to view my change with https://github.com/apache/felix-dev/pull/616/changes?w=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants