Re: RFR: 8048207 : (xs) Collections.checkedQueue offer() calls add() on wrapped queue

2014-06-27 Thread Paul Sandoz
On Jun 27, 2014, at 1:58 AM, Mike Duigou mike.dui...@oracle.com wrote: 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

RFR: 8048207 : (xs) Collections.checkedQueue offer() calls add() on wrapped queue

2014-06-26 Thread Mike Duigou
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