Community
Participate
Working Groups
This code compiles with javac 1.8.0_101 and IntelliJ but not with Eclipse 4.6.0: https://gist.github.com/stevenschlansker/1a85215249708e325e0baa42e9d7d8bb It's unclear to me exactly how enum-like recursive type declarations (Config<C extends Config<C>) should interact with wildcards (Entry<? extends Config<?>>), but the differing behavior from javac is inconvenient...
Created attachment 263478 [details] self-contained compilable source code Adding the full source code including necessary imports. I agree that differences between compilers are "inconvenient". Unfortunately, type inference involving wildcards and captures is one of the hardest to get right, with a prominent javac bug [1] still unresolved 3 years later. I also tried javac from a Java 9 early access build, because they have some improvements in this area, but still not the same result as ecj. This doesn't rule out a bug in ecj, but just the analysis for each of these cases is a huge effort, so please don't hold your breath waiting for a fix. [1] https://bugs.openjdk.java.net/browse/JDK-8016207
bulk move out of 4.8
Bulk move out of 4.9
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.