On Thu, 1 Feb 2024 01:32:42 GMT, Joe Darcy <da...@openjdk.org> wrote:

> 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.
> 
> Corresponding issue filed for javac's compile-time annotations: JDK-8325078.

This pull request has now been integrated.

Changeset: 1797efd6
Author:    Joe Darcy <da...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/1797efd68d4f30cc38a96fc5902999ee504e182f
Stats:     18 lines in 2 files changed: 6 ins; 0 del; 12 mod

8322218: Better escaping of single and double quotes in annotation toString() 
results

Reviewed-by: mchung

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

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

Reply via email to