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

Fix Jigsaw related module/package error messages and throw correct exceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • hotspot
    • b156

    Backports

      Description

        When JVM_AddModulePackage() and JVM_DefineModule() are called to add a package that is already in a module defined for the specified class loader then the JVM generates an IllegalArgumentError with the message:

            "Package %s [for module %s] already exists for class loader"

        A more accurate message would be:

            "Package %s [for module %s] is already in another module defined to the class loader"

        Additionally, the JVM should throw IllegalStateException for this issue, not IllegalArgumentException

        Attachments

          Issue Links

            Activity

              People

                hseigel Harold Seigel (Inactive)
                hseigel Harold Seigel (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: