-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b156
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8174428 | 10 | Harold Seigel | P3 | Resolved | Fixed | b01 |
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
"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
- backported by
-
JDK-8174428 Fix Jigsaw related module/package error messages and throw correct exceptions
-
- Resolved
-