15.28.1 needs some polish ?

Srikanth S Adayapalam srikanth_sankaran at in.ibm.com
Mon Feb 18 11:12:46 PST 2013

> (2) Should the passage "Also note that static method invocations 
> have the form TypeName.method(),
> while here we're using the more general ReferenceType; an error 
> occurs if the reference ends up being a 
> static method reference and the qualifier is a parameterized type." 
> be relegated to the motivation box ?

This is an incorrect observation on my part - sorry. This is very much 
in the main body. I actually meant to ask if this section should expressly 

ban parameterized array creation and ended up asking the wrong question.

The spec is silent on generic array creation and 8b74 allows:

import java.util.ArrayList;
import java.util.List;
interface I {
        List<String> [] doit(int x);
public class X {
   I i1 = ArrayList<String>[]::new;   // Compiles OK
   I i2 = List<String>[]::new;        // Compiles OK
   List<String> [] ls = new ArrayList<String>[10]; // Error.
// ------- 

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

More information about the lambda-spec-experts mailing list