Skip to content

Commit

Permalink
added missing bundle state when building add-opens/... stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsontom committed Jul 3, 2020
1 parent 69211ca commit 23b6899
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -339,7 +339,8 @@ private static JavaModuleLayerModification collectModifications(BundleContext co
Bundle[] bundles = context.getBundles();
for (Bundle b : bundles) {
if (((b.getState() & Bundle.RESOLVED) == Bundle.RESOLVED
|| (b.getState() & Bundle.ACTIVE) == Bundle.ACTIVE)) {
|| (b.getState() & Bundle.STARTING) == Bundle.STARTING
|| (b.getState() & Bundle.ACTIVE) == Bundle.ACTIVE)) {
if( b.getHeaders().get("Java-Module-AddOpens") != null ) { //$NON-NLS-1$
opens.addAll(toOpenExports(b.getHeaders().get("Java-Module-AddOpens"),b)); //$NON-NLS-1$
}
Expand Down Expand Up @@ -582,6 +583,7 @@ private static List<FXProviderBundle> getDeployedJavaModuleBundlePaths(BundleCon
}
for (Bundle b : context.getBundles()) {
if (((b.getState() & Bundle.RESOLVED) == Bundle.RESOLVED
|| (b.getState() & Bundle.STARTING) == Bundle.STARTING
|| (b.getState() & Bundle.ACTIVE) == Bundle.ACTIVE) && b.getHeaders().get("Java-Module") != null) { //$NON-NLS-1$
String name = b.getHeaders().get("Java-Module"); //$NON-NLS-1$
if( FXClassloaderConfigurator.DEBUG ) {
Expand Down

0 comments on commit 23b6899

Please sign in to comment.