spec clarification: wildcard array element signature

Liam Miller-Cushon cushon at google.com
Sun Oct 23 03:15:10 UTC 2016


When javac compiles the following program, it writes field i's signature as
"LA<[*>.I;".

I don't think the grammar in JVMS 4.7.9.1 allows for the element type of an
array to be a wildcard. Is that a spec bug?

class A<X> { class I {} }
class Test {
  class B<Y> extends A<Y[]> {}
  B<?>.I i;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20161022/e2102d25/attachment.html>


More information about the compiler-dev mailing list