RFR: 8312821: Javac accepts char literal as template

Jan Lahoda jlahoda at openjdk.org
Wed Aug 2 12:16:41 UTC 2023

On Tue, 1 Aug 2023 15:28:06 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

> Embedded expressions in character literals are accepted. Fix is to reject `{` sequence in character literals.
> Additional code was added to skip to end of literal when error is detected. This avoids many misleading error messages.

Looks good to me.


Marked as reviewed by jlahoda (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/15106#pullrequestreview-1558870579

More information about the compiler-dev mailing list