15.28.1 needs some polish ?

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Feb 19 03:40:03 PST 2013

On 19/02/13 11:33, Srikanth S Adayapalam wrote:
> > From: Maurizio Cimadamore <maurizio.cimadamore at oracle.com>
> > Subject: Re: 15.28.1 needs some polish ?
> > > The spec is silent on generic array creation and 8b74 allows:
> > Whoops - I believe the language should be consistent here - array
> > creation is not any safer if it happens through method reference, so 
> the
> > code deserves an unchecked warning.
> Note that direct array creation is an error, not a warning.
> Srikanth. 
Right - but we also have cases (in varargs) where indirect array 
creation is treated as warning. I guess in my mind this looked closer to 
the latter (as no array is created if the mref is never called) but I 
could see this going either way.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-spec-experts/attachments/20130219/e4d0f552/attachment.html 

More information about the lambda-spec-experts mailing list