Integrated: 8312821: Javac accepts char literal as template
Jim Laskey
jlaskey at openjdk.org
Wed Aug 2 21:04:59 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.
This pull request has now been integrated.
Changeset: bc1d2eac
Author: Jim Laskey <jlaskey at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/bc1d2eac9abd5fb38402113c7f0805c21ef7787f
Stats: 29 lines in 3 files changed: 14 ins; 3 del; 12 mod
8312821: Javac accepts char literal as template
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/15106
More information about the compiler-dev
mailing list