Re: Strange covariant/generics downcasting issue with JDK8

2013-10-08 Thread Paul Sandoz
[i am not subscribed to compiler-dev] You are using raw types for the condition: public class RegexMatch extends Condition replace with: public class RegexMatch extends Condition and it will compile. So it seems the raw types for the parameter is triggering the compiler to loose the type

Re: Strange covariant/generics downcasting issue with JDK8

2013-10-05 Thread Mark Derricutt
Just following up on this now that Java One is over and hopefully more eyes can help me track down just what's going on here. Try as a may I've not yet been able to distil this problem down to a single class file to reproduce, but the extracted project on github ( https://github.com/talios/jdk8

Re: Strange covariant/generics downcasting issue with JDK8

2013-09-23 Thread Mark Derricutt
On 24/09/2013, at 12:52 AM, Mario Torre wrote: > > AppTest.java -g -nowarn -target 1.5 -source 1.5 > > This looks like the cause, no? > I had thought maybe as well, but I get the same issue with "-target 1.8 -source 1.8", and if javac no longer supports 1.5 I would have expected an "invalid s

Re: Strange covariant/generics downcasting issue with JDK8

2013-09-23 Thread Mario Torre
> AppTest.java -g -nowarn -target 1.5 -source 1.5 This looks like the cause, no? Cheers, Mario Il giorno 23/set/2013 07:33, "Mark Derricutt" ha scritto: > Hi all, > > Since you're all enjoying JavaOne at the moment I was thinking it was > about time that I starting building $work's project unde

Re: Strange covariant/generics downcasting issue with JDK8

2013-09-23 Thread Vicente-Arturo Romero-Zaldivar
Hi Mark, Any javac issue should be submitted to compiler-dev@... which is the correct list for this, Thanks, Vicente On 23/09/13 06:30, Mark Derricutt wrote: Hi all, Since you're all enjoying JavaOne at the moment I was thinking it was about time that I starting building $work's project un

Strange covariant/generics downcasting issue with JDK8

2013-09-22 Thread Mark Derricutt
Hi all, Since you're all enjoying JavaOne at the moment I was thinking it was about time that I starting building $work's project under JDK8 and give it some love over my normal small projects and ran into an odd issue with generics/covariant returns that works fine under 7u40 and breaks under