RFR: JDK-8325078: Better escaping of single and double quotes in javac annotation toString() results

Joe Darcy darcy at openjdk.org
Thu Feb 1 05:18:09 UTC 2024


The javac version of https://github.com/openjdk/jdk/pull/17664

"A double quote character doesn't need to be escaped when it is a char literal and single quote character doesn't need to be escaped when it is in a string. This change updates the toString() output of annotations to account for the different escaping requirements of strings and characters."

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

Commit messages:
 - Update regressiont test for changed string output.
 - JDK-8325078: Better escaping of single and double quotes in javac annotation toString() results

Changes: https://git.openjdk.org/jdk/pull/17665/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17665&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8325078
  Stats: 21 lines in 4 files changed: 6 ins; 0 del; 15 mod
  Patch: https://git.openjdk.org/jdk/pull/17665.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17665/head:pull/17665

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


More information about the compiler-dev mailing list