15.28.1 needs some polish ?

Dan Smith daniel.smith at oracle.com
Tue Feb 19 15:54:31 PST 2013


On Feb 19, 2013, at 4:33 AM, Srikanth S Adayapalam <srikanth_sankaran at in.ibm.com> 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.

I've mimicked the error from 15.10 in 15.28.  The new rule is that the ArrayType must be reifiable, or an error occurs.

—Dan


More information about the lambda-spec-observers mailing list