diff options
-rw-r--r-- | openjdk/java/lang/ClassLoader.java | 5 | ||||
-rw-r--r-- | openjdk/map.xml | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/openjdk/java/lang/ClassLoader.java b/openjdk/java/lang/ClassLoader.java index 63d1924a..a33d2384 100644 --- a/openjdk/java/lang/ClassLoader.java +++ b/openjdk/java/lang/ClassLoader.java @@ -192,8 +192,11 @@ public abstract class ClassLoader { @ikvm.lang.Internal public static final ClassLoader DUMMY = new ClassLoader(false) { }; - private ClassLoader(boolean ignored) + ClassLoader(boolean ignored) { + // [IKVM] This constructor is IKVM specific and only used to construct DUMMY. + // Note that this body is replaced in map.xml with an empty body as + // we don't want to execute any of the instance field initializers. } /** diff --git a/openjdk/map.xml b/openjdk/map.xml index 0ce4f42d..6a878eea 100644 --- a/openjdk/map.xml +++ b/openjdk/map.xml @@ -1369,6 +1369,13 @@ <field name="wrapper" sig="Lcli.IKVM.Internal.ClassLoaderWrapper;" modifiers=""> <attribute type="IKVM.Attributes.HideFromJavaAttribute" sig="()V" /> </field> + <constructor sig="(Z)V"> + <body> + <ldarg_0 /> + <call class="java.lang.Object" name="<init>" sig="()V" /> + <ret /> + </body> + </constructor> <method name="getBootstrapResource" sig="(Ljava.lang.String;)Ljava.net.URL;"> <body> <ldarg_0 /> |