[10] RFR 8184706: Matcher doesn't indicate hitEnd after matching \u0D with \R at EOL
Ivan Gerasimov
ivan.gerasimov at oracle.com
Sat Jul 15 08:41:36 UTC 2017
Hello!
It was spotted that in certain situations the Matcher.hitEnd() returns
false, though the regexp engine in fact has hit the end of the input.
This is because the \R pattern can match both 0x0d and 0x0d0x0a
sequences. Thus, the engine "hits the end", if the input ends with
0x0d, since the engine wants to greedily consume 0x0a.
Would you please help review the fix?
BUGURL: https://bugs.openjdk.java.net/browse/JDK-8184706
WEBREV: http://cr.openjdk.java.net/~igerasim/8184706/00/webrev/
--
With kind regards,
Ivan Gerasimov
More information about the core-libs-dev
mailing list