-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b147
-
Not verified
Any class containing an assert will call desiredAssertionStatus on initialization, which polls its classloader (or the VM) whether or not to enable assertions.
This method calls getClassLoader(), which makes a security check that the caller class (the class itself) has permission to get it's own classloader. It appears to be an invariant that this is the case, thus desiredAssertionStatus should call getClassLoader0 directly.
This method calls getClassLoader(), which makes a security check that the caller class (the class itself) has permission to get it's own classloader. It appears to be an invariant that this is the case, thus desiredAssertionStatus should call getClassLoader0 directly.