8169993: Class::desiredAssertionStatus should call getClassLoader0
Reviewed-by: psandoz
--- 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);