Skip to content

Commit

Permalink
Update error message when linking jdk.jlink
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa committed Sep 16, 2024
1 parent 41c4fa1 commit 08c23f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ error.prefix=Error:
warn.prefix=Warning:

err.runtime.link.not.linkable.runtime=The current run-time image does not support run-time linking.
err.runtime.link.jdk.jlink.prohibited=This linkable run-time image does not contain packaged modules\
err.runtime.link.jdk.jlink.prohibited=This JDK does not contain packaged modules\
\ and cannot be used to create another run-time image that includes the jdk.jlink module.
err.runtime.link.packaged.mods=--keep-packaged-modules is not allowed. This linkable run-time image\
\ does not include packaged modules.
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/tools/jlink/JmodLess/MultiHopTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public boolean test(OutputAnalyzer a) {
if (analyzer.getExitValue() == 0) {
throw new AssertionError("Expected jlink to fail due to including jdk.jlink");
}
String expectedMsg = "This linkable run-time image does not contain packaged modules " +
String expectedMsg = "This JDK does not contain packaged modules " +
"and cannot be used to create another run-time image that includes " +
"the jdk.jlink module.";
analyzer.stdoutShouldContain(expectedMsg);
Expand Down

0 comments on commit 08c23f5

Please sign in to comment.