On Wed, 31 Mar 2021 20:38:33 GMT, Ian Graves <igra...@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

Reply via email to