Class.getPackage() fails with InternalError if class is defined to the boot class loader but module is not in the boot layer

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b20

        If the VM is started with --limit-modules and the attach API is used to start a JMX agent then the java.management and java.rmi modules will be loaded into a child layer. Calling getPackage on any of the classes in these modules will fail with InternalError as the boot loader implementation of definePackage assumes that if a class is defined to the boot loader in a named module then the named module is in the boot layer.

              Assignee:
              Alan Bateman
              Reporter:
              Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: