Skip to content

Commit 00ec105

Browse files
committed
8343412: Missing escapes for single quote marks in javac.properties
Reviewed-by: vromero
1 parent 8c1cf8f commit 00ec105

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ javac.opt.maxerrs=\
148148
javac.opt.maxwarns=\
149149
Set the maximum number of warnings to print
150150
javac.opt.nogj=\
151-
Don't accept generics in the language
151+
Don''t accept generics in the language
152152
javac.opt.moreinfo=\
153153
Print extended information for type variables
154154
javac.opt.printsearch=\
@@ -178,7 +178,7 @@ javac.opt.arg.Xlint=\
178178
<key>(,<key>)*
179179
javac.opt.Xlint.custom=\
180180
Warnings to enable or disable, separated by comma.\n\
181-
Precede a key by '-' to disable the specified warning.\n\
181+
Precede a key by ''-'' to disable the specified warning.\n\
182182
Use --help-lint to see the supported keys.
183183
javac.opt.Xlint.desc.auxiliaryclass=\
184184
Warn about an auxiliary class that is hidden in a source file, and is used from other files.
@@ -313,9 +313,9 @@ javac.opt.Xdoclint.package.args = \
313313

314314
javac.opt.Xdoclint.package.desc=\
315315
Enable or disable checks in specific packages. Each <package> is either\n\
316-
the qualified name of a package or a package name prefix followed by '.*',\n\
316+
a qualified package name or a package name prefix followed by ''.*'',\n\
317317
which expands to all sub-packages of the given package. Each <package>\n\
318-
can be prefixed with '-' to disable checks for the specified package(s).
318+
can be prefixed with ''-'' to disable checks for the specified package(s).
319319

320320
javac.opt.Xstdout=\
321321
Redirect standard output
@@ -382,7 +382,7 @@ javac.opt.default.module.for.created.files=\
382382
Fallback target module for files created by annotation processors,\n\
383383
if none specified or inferred.
384384
javac.opt.lineDocComments=\
385-
Disable support for documentation comments with lines beginning '///'
385+
Disable support for documentation comments with lines beginning ''///''
386386

387387
## messages
388388

test/langtools/tools/javac/diags/CheckResourceKeys.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ Set<String> getResourceKeys() {
524524
List<ResourceBundle> getMessageFormatBundles() {
525525
Module jdk_compiler = ModuleLayer.boot().findModule("jdk.compiler").get();
526526
List<ResourceBundle> results = new ArrayList<>();
527-
for (String name : new String[]{"compiler", "launcher"}) {
527+
for (String name : new String[]{"javac", "compiler", "launcher"}) {
528528
ResourceBundle b =
529529
ResourceBundle.getBundle("com.sun.tools.javac.resources." + name, jdk_compiler);
530530
results.add(b);

0 commit comments

Comments
 (0)