-
Bug
-
Resolution: Other
-
P4
-
17, 18
-
RHEL8
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8278514 | 19 | Toshio Nakamura | P4 | Resolved | Fixed | b01 |
JDK-8285684 | 17.0.5-oracle | Adam Sotona | P4 | Resolved | Fixed | b01 |
JDK-8282409 | 17.0.3 | Toshio Nakamura | P4 | Resolved | Fixed | b04 |
Custom JRE generated by jlink cannot find non-ASCII named modules included inside the JRE.
Recreate steps:
$ javac -d mod1 あ.java module-info.java
$ mkdir jars
$ jar --create -f jars/あ_module.jar --main-class test.isel.あ.あ -C mod1 .
$ jlink --module-path jars --add-modules あ_module --output myjava
$ myjava/bin/java -m あ_module
Error: Could not find or load main class test.isel.あ.あ in module あ_module
Expected result:
$ myjava/bin/java -m あ_module
calling:main
----module-info.java
module あ_module {
exports test.isel.あ;
}
----
----あ.java
package test.isel.あ;
public class あ{
public static void main(String[] args) {
System.out.println("calling:main");
}
}
----
Recreate steps:
$ javac -d mod1 あ.java module-info.java
$ mkdir jars
$ jar --create -f jars/あ_module.jar --main-class test.isel.あ.あ -C mod1 .
$ jlink --module-path jars --add-modules あ_module --output myjava
$ myjava/bin/java -m あ_module
Error: Could not find or load main class test.isel.あ.あ in module あ_module
Expected result:
$ myjava/bin/java -m あ_module
calling:main
----module-info.java
module あ_module {
exports test.isel.あ;
}
----
----あ.java
package test.isel.あ;
public class あ{
public static void main(String[] args) {
System.out.println("calling:main");
}
}
----
- backported by
-
JDK-8278514 Custom JRE cannot find non-ASCII named module inside
- Resolved
-
JDK-8282409 Custom JRE cannot find non-ASCII named module inside
- Resolved
-
JDK-8285684 Custom JRE cannot find non-ASCII named module inside
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/df5a29ca
-
Commit openjdk/jdk/fcd67a52
-
Review openjdk/jdk17u-dev/177
-
Review openjdk/jdk/6693
(2 links to)