greptilian logo

IRC log for #friendlyjava, 2016-12-13

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:17 aditsu any comments on that statement? which way would you choose to fix it?
01:21 pdurbin aditsu: it compiles here: http://ideone.com/ZEvtWI
01:26 aditsu hmm, maybe it's the compiler compliance level? let me try a few things
01:29 aditsu pdurbin: fails with 1.6 and 1.7, works with 1.8
01:29 aditsu_ joined ##friendlyjava
01:29 aditsu aditsu_: wat! go away :p
01:31 pdurbin time to upgrade, I guess
01:34 pdurbin seems to compile on Java 7 too: http://ideone.com/RrPIvT
01:34 aditsu not in my eclipse
01:35 aditsu and sure, requiring java 8 fixes it (and limits where/how I can run the code), but the more interesting question is why it failed before and what changed
01:36 pdurbin java 7 is eol anyway
01:36 aditsu I wonder if it's this: https://blog.jooq.org/2013/11/25/a-lesser-known-java-8-feature-generalized-target-type-inference/
01:39 pdurbin aditsu: what compilation error are you seeing?
01:39 aditsu pdurbin: Type mismatch: cannot convert from List<Class<? extends Object&Comparable<?>&Serializable>> to List<Class<?>>
01:40 aditsu let me try with javac...
01:42 aditsu yep, javac 7 says something similar but more verbose: http://dpaste.com/3DV4ZDR
01:47 pdurbin hmm, "intersection types"
01:48 aditsu that's basically the "&" stuff above
01:54 pdurbin ok
21:21 bluezone joined ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode