[concurrency-interest] LinkedBlockingQueue does not throw NullPointerException for the method call contains

Joe Bowbeer joe.bowbeer at gmail.com
Sun Apr 15 17:38:44 EDT 2007


On 4/15/07, Joe Bowbeer <joe.bowbeer at gmail.com> wrote:
> Good point.  Looks like a bug to me.  Will you report it?
>
> I expect this applies to all subclasses of AbstractQueue.
>

That is, the ones that don't themselves override contains.

In particular, DelayQueue in addition to LinkedBlockingQueue.

PriorityQueue overrides contains in 1.6 but not 1.5.

--Joe


More information about the Concurrency-interest mailing list