diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Target_java_lang_ClassLoader.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Target_java_lang_ClassLoader.java index 78c6d3728f8a3..ae904f739b8d8 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Target_java_lang_ClassLoader.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/Target_java_lang_ClassLoader.java @@ -206,11 +206,6 @@ private Class findLoadedClass0(String name) { @Alias native Stream packages(); - @SuppressWarnings("static-method") - @Substitute - public Target_java_lang_Module getUnnamedModule() { - return ClassLoaderUtil.unnamedModuleReference.get(); - } /* * The assertion status of classes is fixed at image build time because it is baked into the AOT * compiled code. All methods that modify the assertion status are substituted to throw an @@ -361,11 +356,6 @@ public Object transform(Object receiver, Object originalValue) { } } -final class ClassLoaderUtil { - - public static final LazyFinalReference unnamedModuleReference = new LazyFinalReference<>(Target_java_lang_Module::new); -} - @TargetClass(className = "java.lang.ClassLoader", innerClass = "ParallelLoaders") final class Target_java_lang_ClassLoader_ParallelLoaders {