Summary: | [1.5][compiler] Eclipse compiler compiles unrelated return types in interface; Sun JDK javac won't | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Peter Arrenbrecht <eclipsebugs> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | david_audel, philippe_mulet |
Version: | 3.4 | ||
Target Milestone: | 3.5 M5 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Peter Arrenbrecht
2008-12-12 09:25:22 EST
Interestingly javac7 behaves like we do. Kent - is this a compliance-driven behavior ? Or do we have the right behavior, and they only fixed it from 1.7 on ? Feels like our behavior is correct, and Javac6 wrong since IBoth is actually a good fit for both supertype #foo method return types. I certainly agree that Eclipse's behaviour is better. Javac is causing me some pain with this. :( Closing as a javac bug See the additional testcases in the comment section http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6294779 I really like the last comment ;) To change resolved state Closing as invalid since its not an eclipse bug, but is a javac bug Verified for 3.5M5. |