Re: RFR [9] Remove sun.misc.Queue and replace usages with standard Collections

2015-12-13 Thread Sergey Bylokhov
Hi, Chris. What is the reason to use assertion? If the problem is not theoretical, then probably OOM(or something like that) will be better? On 11/12/15 20:22, Chris Hegarty wrote: More technical debt in sun.misc… Java SE has had support for Queues in Collections for many major releases,

Re: RFR: JDK-8057804: AnnotatedType interfaces provide no way to get annotations on owner type

2015-12-13 Thread Joel Borggrén-Franck
Hi Joe, Thanks for the comments, On Thu, 10 Dec 2015 at 22:18 joe darcy wrote: > Hi Joel, > > On 12/10/2015 12:27 PM, Joel Borggrén-Franck wrote: > > Question, is it better to remove the throws clauses for the cases that > return null? > > > I think so; they aren't

Re: RFR [9] Remove sun.misc.Queue and replace usages with standard Collections

2015-12-13 Thread Chris Hegarty
Thanks for looking at this Sergey. > On 13 Dec 2015, at 11:16, Sergey Bylokhov wrote: > > Hi, Chris. > What is the reason to use assertion? If the problem is not theoretical, Hmm… The queue is “unbounded”, but actually has a capacity of Integer.MAX_VALUE. I suspect