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

URLClassLoader constructors should include API note warning that the parent should not be null

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • None
    • core-libs
    • master

      java.lang.ClassLoader has an API note in its constructors that specify the parent class loader:

      "If the parent is specified as null (for the bootstrap class loader) then there is no guarantee that all platform classes are visible."

      It would be useful to repeat this warning/note in the URLClassLoader constructors that take a parent parameter.

            jpai Jaikiran Pai
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: