Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2022-02-15 20:45:15 +0000
committerThomas Watson2022-02-15 22:37:13 +0000
commit167fc48203b373e0311adf95f69ca9bc857609e7 (patch)
tree5589b4f9872df96f6d11ea19fb6228173f3c9974
parent87c52181fb8d348e1936c3b3f0c2d676f0be462d (diff)
downloadrt.equinox.framework-S4_23_0_RC1.tar.gz
rt.equinox.framework-S4_23_0_RC1.tar.xz
rt.equinox.framework-S4_23_0_RC1.zip
version 8 Change-Id: Ib1f09ef2d1622d605cfc3cacd4d084579da03276 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com> Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/190839
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/url/MultiplexingFactory.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/url/MultiplexingFactory.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/url/MultiplexingFactory.java
index e2226b7f3..402375fde 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/url/MultiplexingFactory.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/url/MultiplexingFactory.java
@@ -232,7 +232,12 @@ public abstract class MultiplexingFactory {
private boolean isSystemClass(final Class<?> clazz) {
// we want to ignore classes from the system
- ClassLoader cl = AccessController.doPrivileged((PrivilegedAction<ClassLoader>) clazz::getClassLoader);
+ ClassLoader cl = AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
+ @Override
+ public ClassLoader run() {
+ return clazz.getClassLoader();
+ }
+ });
return cl == null || systemLoaders.contains(cl);
}

Back to the top