Integrated: 8276694: Pattern trailing unescaped backslash causes internal error
Masanori Yano
myano at openjdk.java.net
Tue Jan 11 22:41:31 UTC 2022
On Mon, 20 Dec 2021 09:57:14 GMT, Masanori Yano <myano at openjdk.org> wrote:
> Could you please review the 8276694 bug fixes?
>
> A message specific for this exception should be printed instead of an internal error. This fix adds a new check to output an appropriate exception message when the regular expression ends with an unescaped backslash. This fix also checks the position of the cursor to rule out other syntax errors at the middle position of the regular expression.
This pull request has now been integrated.
Changeset: 3aaa0982
Author: Masanori Yano <myano at openjdk.org>
Committer: Ian Graves <igraves at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/3aaa0982d8c1735208a331b0097a5aea4a1fef5a
Stats: 12 lines in 2 files changed: 11 ins; 0 del; 1 mod
8276694: Pattern trailing unescaped backslash causes internal error
Reviewed-by: jlaskey
-------------
PR: https://git.openjdk.java.net/jdk/pull/6891
More information about the core-libs-dev
mailing list