Summary: | Compiler Problem | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Krishan Agarwal <krishan_agarwal> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | major | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.1 M1 | ||
Hardware: | PC | ||
OS: | Windows All | ||
Whiteboard: |
Description
Krishan Agarwal
2002-08-14 17:02:43 EDT
I found a couple typos in your test case. With the one below, no javac implementation (since 1.1.7b) did accept it. Eclipse 2.0 compiler does reject it either in 1.3 or 1.4 compliant mode. I don't see a problem. VAJ was wrong in finding the first applicable method, where it should only have found the first accessible one, and then checked for applicability (there are some nuances around this). Closing ----------------- public class Foo { public void foo() { System.out.println("Inside foo in outer class"); } public abstract class AInnerFoo { public abstract void foo(String s); } public class CInnerFoo extends AInnerFoo { public void foo(String v) { System.out.println("Inside CInner" + v); } public void main() { foo(); foo("===STRING==="); } } public class BInnerFoo extends AInnerFoo { public void foo(String s) { System.out.println("Inside BInner" + s); } public void abc() { foo(); } } } |