Strange covariant/generics downcasting issue with JDK8

Mark Derricutt mark at talios.com
Wed Sep 25 18:28:00 PDT 2013


Does anyone have any thoughts on this issue? Initially I had thought it may be related to using "-source 1.5 -target 1.5" but even when switching to 1.8/1.8 the problem is there.

On 23/09/2013, at 8:30 PM, Mark Derricutt <mark at talios.com> wrote:

> /Users/amrk/Dropbox/covariantfail/src/test/java/com/talios/AppTest.java:37: error: cannot find symbol
>                 .hasSize(3);
>                 ^
> 

-- Mark Derricutt ( mark at talios.com )
 — twitter: https://twitter.com/talios
 — podcast: http://www.illegalargument.com
 — blog: http://www.theoryinpractice.net
 — google+: http://gplus.to/talios

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20130926/50adf42d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20130926/50adf42d/signature.asc 


More information about the compiler-dev mailing list