RFR: JDK-8227640: javac crashes on text blocks with invalid escapes.
james.laskey at oracle.com
Mon Jul 15 16:29:03 UTC 2019
Actually, one problem, should break from the token loop when the error is encountered, otherwise it's a change in behaviour.
> On Jul 15, 2019, at 1:05 PM, Jan Lahoda <jan.lahoda at oracle.com> wrote:
> When a text block contains an invalid escape sequence, there is an internal IllegalArgumentException thrown from String.translateEscapes invoked from javac. While this is concealed by javac, there are still ways to see the effects of the exception. So, I'd like to propose avoid calling String.translateEscapes when there are invalid escape sequences (errors for these invalid sequences are already reported).
> JBS: https://bugs.openjdk.java.net/browse/JDK-8227640
> Webrev: http://cr.openjdk.java.net/~jlahoda/8227640/webrev.00/
> How does this look?
More information about the compiler-dev