8169993: Class::desiredAssertionStatus should call getClassLoader0
authorredestad
Sat, 19 Nov 2016 12:22:35 +0100
changeset 42169 b5f96c169364
parent 42168 70186e53f7ae
child 42170 0bb91d845f04
8169993: Class::desiredAssertionStatus should call getClassLoader0 Reviewed-by: psandoz
jdk/src/java.base/share/classes/java/lang/Class.java
--- a/jdk/src/java.base/share/classes/java/lang/Class.java	Fri Nov 18 15:33:30 2016 +0300
+++ b/jdk/src/java.base/share/classes/java/lang/Class.java	Sat Nov 19 12:22:35 2016 +0100
@@ -3434,7 +3434,7 @@
      * @since  1.4
      */
     public boolean desiredAssertionStatus() {
-        ClassLoader loader = getClassLoader();
+        ClassLoader loader = getClassLoader0();
         // If the loader is null this is a system class, so ask the VM
         if (loader == null)
             return desiredAssertionStatus0(this);