spec clarification: wildcard array element signature
Srikanth
srikanth.adayapalam at oracle.com
Wed Oct 26 06:25:07 UTC 2016
*> Alex Buckley*alex.buckley at
oracle.com<mailto:compiler-dev%40openjdk.java.net?Subject=Re%3A%20spec%20clarification%3A%20wildcard%20array%20element%20signature&In-Reply-To=%3C580E52CC.4030408%40oracle.com%3E>
/> Mon Oct 24 18:28:28 UTC 2016
/
>Third, on JDK 9b140, javac crashes if the declaration of i uses a
>bounded wildcard for B's type argument -- say B<? extends Number>.I
>java.lang.ClassCastException:
>com.sun.tools.javac.code.Type$TypeMapping$3 (in module: jdk.compiler)
>cannot be cast to
>com.sun.tools.javac.code.Type$WildcardType (in module: jdk.compiler) at
>com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.validateAnnotatedType(jdk.compiler at 9-ea
<http://mail.openjdk.java.net/mailman/listinfo/compiler-dev>/Attr.java:4804)
I have raised https://bugs.openjdk.java.net/browse/JDK-8168760
Thanks!
Srikanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20161026/ba23e7f5/attachment-0001.html>
More information about the compiler-dev
mailing list