diff --git a/src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java b/src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java index 7426708e38aa6..facff0d6fdce8 100644 --- a/src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java +++ b/src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java @@ -868,7 +868,7 @@ private static IllegalNativeAccess addIllegalNativeAccess() { } else if (value.equals("warn")) { return IllegalNativeAccess.WARN; } else { - fail("Value specified to --illegal-access not recognized:" + fail("Value specified to --illegal-native-access not recognized:" + " '" + value + "'"); return null; }