RFR: 8048207 : (xs) Collections.checkedQueue offer() calls add() on wrapped queue
Mike Duigou
mike.duigou at oracle.com
Thu Jun 26 23:58:50 UTC 2014
Hello all;
This changeset corrects an issue with the Collections.checkedQueue() utility method added in Java 8. The wrapper implementation incorrectly calls add() on the wrapped queue rather than offer().
I improved the existing unit test to include this condition (and converted it to TestNG). I also converted a few uses of Collections.CheckedCollection.typeCheck to use the returned properly typed result where previously the callers had been using it as a standalone check.
jbsbug: https://bugs.openjdk.java.net/browse/JDK-8048207
webrev: http://cr.openjdk.java.net/~mduigou/JDK-8048207/0/webrev/
Mike
More information about the core-libs-dev
mailing list