Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169993

Class::desiredAssertionStatus should call getClassLoader0

XMLWordPrintable

      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.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: