From f2233fa2a2ad0ed1cc6a1ed1e5ec615daa3bc8cb Mon Sep 17 00:00:00 2001 From: ivan-ristovic Date: Wed, 10 Jul 2024 16:43:39 +0200 Subject: [PATCH] Remove ClassLoader unnamed module lazy value generator --- .../svm/core/jdk/Target_java_lang_ClassLoader.java | 10 ---------- 1 file changed, 10 deletions(-) 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 {