Default methods containing local/anonymous classes

Alex Buckley alex.buckley at oracle.com
Thu Aug 22 18:05:20 PDT 2013


In accordance with spec bug JDK-8019998, I have just added the following 
text to JLS 13.1, regarding the properties of the binary representation 
of a class or interface:

"Every interface must contain symbolic references to all of its member 
types (§9.5), and to all anonymous classes that appear in its field 
initializers."

This will need to be updated for local and anonymous classes that can 
appear in default methods of an interface. I looked for 13.1 in the JSR 
335 0.6.2 spec, but the only mention is:

"Similar changes to the lexically enclosing class terminology should be 
made in 8.8.7.1, 13.1, 15.9.2."

I don't know what "Similar changes" are, so please expand this clause.

Alex


More information about the lambda-spec-comments mailing list