JDK 9 RFR(s): 8150488: add note to Scanner.findAll()regardingpossible infinite streams

Stuart Marks stuart.marks at oracle.com
Sat Apr 8 00:22:53 UTC 2017


On 4/6/17 6:38 AM, Timo Kinnunen wrote:
> IMHO there should be a notice added in findAll which excludes the behavior of
> the stream after an empty match from any compatibility requirements while the
> notice remains in place. This would be to ensure that findAll and the stream it
> returns can be changed independently from the other methods which also have this
> issue. Just in case.

In general we don't use @apiNote to document implementation limits or 
restrictions that might be modified in the future, e.g. by bugfixes. And also 
note that @apiNote is non-normative, so it doesn't affect compatibility.

But also, Sherman came up with a prototype for a fix that we might be able to 
get into 9, so we're pursuing that at the moment.

s'marks


More information about the core-libs-dev mailing list