Summary: | [compiler] Compilation Error with nested classes | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Francesco <fradev> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 3.2.1 | ||||||
Target Milestone: | 3.3 M3 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Francesco
2006-10-05 11:39:43 EDT
workaround: explict reference to the desired method Reproduced with HEAD. Seems to be an issue with 1.4 and 1.5. Reproduced. This is the case where we should keep looking outside, after we found a non-visible match. Here we should complain that we find no method. class D { private String value; public D(String p_Value){ value = p_Value; } private String getValue(){ return "pippoD"; } } public class X { class C extends D{ public C() { super(getValue()); String s = getValue(); } } } Created attachment 52660 [details]
Proposed patch
Tuned implicit lookup semantics. Added LookupTest#test077,078. Released for 3.3M3 Fixed Verified for 3.3 M3 using build I20061030-0010 |