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

Jan Lahoda jlahoda at openjdk.org
Thu Feb 1 17:56:02 UTC 2024


On Thu, 1 Feb 2024 02:40:29 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> 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."

Looks OK to me.

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

Marked as reviewed by jlahoda (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/17665#pullrequestreview-1857163477


More information about the compiler-dev mailing list