Re: PriorityQueue(collection) should throw NPE

2010-05-07 Thread Martin Buchholz
On Fri, May 7, 2010 at 03:47, David Holmes wrote: > Hi Chris, > > Chris Hegarty said the following on 05/07/10 19:55: >> >> Hi David, Martin, >> >> Thanks for filing the bug David, I'll just add a link to the email thread >> in the archive for reference. > > Thanks. > >> Just one minor observation

Re: PriorityQueue(collection) should throw NPE

2010-05-07 Thread Chris Hegarty
On 07/05/2010 11:47, David Holmes wrote: Hi Chris, Chris Hegarty said the following on 05/07/10 19:55: Hi David, Martin, Thanks for filing the bug David, I'll just add a link to the email thread in the archive for reference. Thanks. Just one minor observation while reviewing the changes. I

Re: PriorityQueue(collection) should throw NPE

2010-05-07 Thread David Holmes
Hi Chris, Chris Hegarty said the following on 05/07/10 19:55: Hi David, Martin, Thanks for filing the bug David, I'll just add a link to the email thread in the archive for reference. Thanks. Just one minor observation while reviewing the changes. Is it necessary for initFromPriorityQueue

Re: PriorityQueue(collection) should throw NPE

2010-05-07 Thread Chris Hegarty
Hi David, Martin, Thanks for filing the bug David, I'll just add a link to the email thread in the archive for reference. Just one minor observation while reviewing the changes. Is it necessary for initFromPriorityQueue to call initFromCollection ( in the case where you're given a PriorityQu

Re: PriorityQueue(collection) should throw NPE

2010-05-06 Thread David Holmes
Hi Martin, CR 6950540 filed. (Chris might want to tidy it up :) ) Changes look okay to me. Thanks, David Martin Buchholz said the following on 05/07/10 12:19: David, Of course you're right. I didn't realize that the hole was one-element nulls. (Why is software always 10 times harder than yo

Re: PriorityQueue(collection) should throw NPE

2010-05-06 Thread Martin Buchholz
David, Of course you're right. I didn't realize that the hole was one-element nulls. (Why is software always 10 times harder than you'd think?) Updated webrev, with lots more tests for corner cases. I still need a bug filed in bugtraq. Martin On Thu, May 6, 2010 at 16:53, David Holmes wrote:

Re: PriorityQueue(collection) should throw NPE

2010-05-06 Thread David Holmes
Hi Martin, Martin Buchholz said the following on 05/07/10 09:13: On Thu, May 6, 2010 at 15:58, David Holmes wrote: Fix: http://cr.openjdk.java.net/~martin/webrevs/openjdk7/PriorityQueueConstructor/ I'm not sure this is necessarily the right fix. It seems to me that incidental nulls will be c

Re: PriorityQueue(collection) should throw NPE

2010-05-06 Thread Martin Buchholz
On Thu, May 6, 2010 at 15:58, David Holmes wrote: >> Fix: >> >> http://cr.openjdk.java.net/~martin/webrevs/openjdk7/PriorityQueueConstructor/ > > I'm not sure this is necessarily the right fix. It seems to me that > incidental nulls will be caught in many/most cases by the sorting code for > colle

Re: PriorityQueue(collection) should throw NPE

2010-05-06 Thread David Holmes
Martin, Martin Buchholz said the following on 05/07/10 08:24: 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

PriorityQueue(collection) should throw NPE

2010-05-06 Thread Martin Buchholz
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 collectio