RFR 8031187: DoubleStream.count is incorrect for a stream containing > Integer.MAX_VALUE elements

Paul Sandoz paul.sandoz at oracle.com
Mon Jan 6 10:05:02 UTC 2014


Please review the following which fixes an embarrassing bug in DoubleStream.count:


I included a test CountLargeTest that counts up to Integer.MAX_VALUE + 1. On my mac book this takes about 27s to run from the jtreg command, on a slow machine it could be longer. I would like to retain this test but it does not need to be run regularly, how can i annotate the test to declare that?

Also, i think this fix should go back to 8. The risk is low.


More information about the core-libs-dev mailing list