[concurrency-interest] Strange behavior with LinkedBlockingQueue

Jean Morissette jean.morissette666@videotron.ca
Tue, 02 Nov 2004 12:30:53 -0500


Doug Lea wrote:
> As now described on concurrency-interest site,
>   http://gee.cs.oswego.edu/dl/concurrency-interest/index.html
> You can obtain an updated jsr166.jar with the LinkedBlockingQueue.drainTo
> bug fix, and use it now via -Xbootclasspath option until it appears
> in a J2SE update.
> 
> Thanks again for reporting this!
> 
> -Doug

This bug can produce also a NullPointerException.

java.lang.NullPointerException
	at 
java.util.concurrent.LinkedBlockingQueue.extract(LinkedBlockingQueue.java:137)
	at 
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:387)


Thanks for the update!
Jean