diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JavaLangSubstitutions.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JavaLangSubstitutions.java index 7f5466dd8213..8a871e8ea110 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JavaLangSubstitutions.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JavaLangSubstitutions.java @@ -726,9 +726,10 @@ public Object transform(Object receiver, Object originalValue) { } ConcurrentHashMap original = (ConcurrentHashMap) originalValue; - List> clvs = Arrays.asList( - ReflectionUtil.readField(ServicesCatalog.class, "CLV", null), - ReflectionUtil.readField(ModuleLayer.class, "CLV", null)); + + ClassLoaderValue x = ReflectionUtil.readField(ServicesCatalog.class, "CLV", null); + List> clvs = Arrays.asList(x); +// ReflectionUtil.readField(ModuleLayer.class, "CLV", null)); var res = new ConcurrentHashMap<>(); for (ClassLoaderValue clv : clvs) {