Pattern.splitAsStream JavaDoc doubt

Paul Sandoz paul.sandoz at oracle.com
Mon Dec 7 13:55:14 UTC 2015


> On 7 Dec 2015, at 11:18, Chris Hegarty <chris.hegarty at oracle.com> wrote:
> 
> Tagir,
> 
> It would seem most useful to update the implementation to
> match the current spec.

Yes, it’s an oversight and lacked a test for such case.

Tagir, thanks for finding this. Would it be possible for you to also add a test to jdk/test/java/util/regex/PatternStreamTest.java?


> To that end, your first patch looks
> like the most appropriate change, pattern-patch.txt.
> 

The second patch would be more preferable and in line with existing last-binding implementations.

Paul.



More information about the core-libs-dev mailing list