paulk-asert opened a new pull request, #3238:
URL: https://github.com/apache/groovy/pull/3238

   RegexChecker compiled the regex without the flags argument, so a regex only 
valid in COMMENTS or LITERAL mode was rejected as a bad regex, and group 
lookups were checked against the wrong group count. Determine the flags (int 
constants, Pattern constants, '|' combinations, and locals or fields 
initialized with them) and compile with them; leave the call unchecked when the 
flags are only known at runtime. A LITERAL regex has no named groups, and flags 
the JDK does not define are reported.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to