changeset 42169:b5f96c169364

8169993: Class::desiredAssertionStatus should call getClassLoader0 Reviewed-by: psandoz
author redestad
date Sat, 19 Nov 2016 12:22:35 +0100
parents 70186e53f7ae
children 0bb91d845f04
files jdk/src/java.base/share/classes/java/lang/Class.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);