PriorityQueue(collection) should throw NPE

Martin Buchholz martinrb at google.com
Thu May 6 22:24:23 UTC 2010


This is a bug report with fix.
(Chris, please file a bug)

Summary: PriorityQueue(collection) should throw NPE if collection
contains a null

Description:
PriorityQueue spec says:

"A priority queue does not permit {@code null} elements."

but the constructor taking a collection does not enforce that.

Fix:
http://cr.openjdk.java.net/~martin/webrevs/openjdk7/PriorityQueueConstructor/

Martin



More information about the core-libs-dev mailing list