diff --git a/src/jdk.jlink/share/classes/jdk/tools/jlink/resources/jlink.properties b/src/jdk.jlink/share/classes/jdk/tools/jlink/resources/jlink.properties index 3d7d6db5bc3e4..a3f2f104c7352 100644 --- a/src/jdk.jlink/share/classes/jdk/tools/jlink/resources/jlink.properties +++ b/src/jdk.jlink/share/classes/jdk/tools/jlink/resources/jlink.properties @@ -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. diff --git a/test/jdk/tools/jlink/JmodLess/MultiHopTest.java b/test/jdk/tools/jlink/JmodLess/MultiHopTest.java index 63a9b08367e9c..9ef5122de4d79 100644 --- a/test/jdk/tools/jlink/JmodLess/MultiHopTest.java +++ b/test/jdk/tools/jlink/JmodLess/MultiHopTest.java @@ -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);