Bug 128520 - [1.5][compiler] compiler problem simmilar to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6213818
Summary: [1.5][compiler] compiler problem simmilar to http://bugs.sun.com/bugdatabase/...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major with 1 vote (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL: http://www.stefanbuehlmann.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 12:45 EST by stefan CLA
Modified: 2006-02-20 15:27 EST (History)
1 user (show)

See Also:


Attachments
reproduce the eclipse compiler problem (2.88 KB, application/x-zip-compressed)
2006-02-18 12:48 EST, stefan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan CLA 2006-02-18 12:45:52 EST
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
Comment 1 stefan CLA 2006-02-18 12:48:16 EST
Created attachment 34964 [details]
reproduce the eclipse compiler problem
Comment 2 Philipe Mulet CLA 2006-02-20 05:22:34 EST
Which version of Eclipse are you using ?
Comment 3 Philipe Mulet CLA 2006-02-20 05:30:08 EST
Cannot reproduce in latest (3.2m5).
Added GenericTypeTest#test918
Comment 4 Philipe Mulet CLA 2006-02-20 05:32:08 EST
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>
----------
Comment 5 stefan CLA 2006-02-20 15:27:17 EST
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