mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-13 06:59:38 +00:00
8169993: Class::desiredAssertionStatus should call getClassLoader0
Reviewed-by: psandoz
This commit is contained in:
parent
9776118339
commit
709d9ee9d0
@ -3434,7 +3434,7 @@ public final class Class<T> implements java.io.Serializable,
|
||||
* @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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user