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

ClassLoader.getSystemClassLoader not clear if recursive initialization leads to ISE or unspecified error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • core-libs
    • None

      There is current ambiguity in the spec. In the method description is has:

      "If circular initialization of the system class loader is detected then an unspecified error or exception is thrown."

      but IllegalStateException is thrown:

      "If invoked recursively during the construction of the class loader specified by the "java.system.class.loader" property."

            bchristi Brent Christian
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: