Community
Participate
Working Groups
Hi, It's a long time since I filed the following bug to sun: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6213818 It used to crash the sun java compiler, but it's now resolved since b67. I now tried to compile the code with eclipse, but I get strange things. I attach an eclipse project with the code to reproduce the problem. There is a batch script "go.bat", which shows, that the sun compiler can compile it (since b67). Just edit the JAVA_HOME to point to the compiler you choose. Thanks, Stefan
Created attachment 34964 [details] reproduce the eclipse compiler problem
Which version of Eclipse are you using ?
Cannot reproduce in latest (3.2m5). Added GenericTypeTest#test918
Problem can be reproduced in 3.1.2 however (did put all sources in one X.java file): ---------- 1. ERROR in X.java (at line 9) interface Edge<N extends Node<? extends Edge<N>>> { ^^^^^^^^^^^^^^ Bound mismatch: The type ? extends Edge<N> is not a valid substitute for the bounded parameter <E extends Edge<? extends Node<E>>> of the ty pe Node<E> ---------- 2. ERROR in X.java (at line 12) interface Node<E extends Edge<? extends Node<E>>> { ^^^^^^^^^^^^^^ Bound mismatch: The type ? extends Node<E> is not a valid substitute for the bounded parameter <N extends Node<? extends Edge<N>>> of the ty pe Edge<N> ----------
Hi Philippe, Thanks for your quick help and sorry, for me beeing so stupid not telling what version I used. Indeed, I used 3.1.2, but since you pointed me to 3.2, which works as you say, the issue is of no further priority to me. Thanks a lot, Stefan