RFR: 8037397: Lost nested character class after intersection &&
Florent Guillaume
github.com+592810+efge at openjdk.java.net
Thu Apr 1 00:36:28 UTC 2021
On Wed, 31 Mar 2021 20:38:33 GMT, Ian Graves <igraves at openjdk.org> wrote:
> Bug fix with the intersection `&&` operator in regex patterns. In JDK-8037397, some character classes on the right hand side of the operator are dropped in cases where nested `[..]` classes are used with non "nested" ones.
src/java.base/share/classes/java/util/regex/Pattern.java line 2666:
> 2664: } else { // abc&&def
> 2665: unread();
> 2666: if(right == null) {
Missing space after `if`. There will be a unit test as well?
(Please tell me if these comments aren't suitable or relevant, as I'm not involved in the project.)
-------------
PR: https://git.openjdk.java.net/jdk/pull/3291
More information about the core-libs-dev
mailing list