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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • b156

        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

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

                Created:
                Updated:
                Resolved: