RFR: 8298943: Add missing escapes for single quotes in compiler.properties

Archie L. Cobbs duke at openjdk.org
Fri Dec 16 15:18:38 UTC 2022


The source file `compiler.properties` contains the English message bundle for compiler warnings, errors, etc.

Since the strings in this file are format strings, any single quotes must be escaped by doubling them.

An example of a properly encoded entry is:


compiler.err.cant.assign.val.to.this=\
    cannot assign to ''this''


There are three entries that appear to be not escaped when they should be.

-------------

Commit messages:
 - Add missing escapes for single quotes.

Changes: https://git.openjdk.org/jdk/pull/11712/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11712&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8298943
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/11712.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11712/head:pull/11712

PR: https://git.openjdk.org/jdk/pull/11712


More information about the compiler-dev mailing list