Summary: | Even though its compile time error. Why the following code is running? | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Niyas <niyaskb> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | niyaskb |
Version: | 3.3 | ||
Target Milestone: | 3.4 M1 | ||
Hardware: | Sun | ||
OS: | Windows XP | ||
URL: | http://laratechnologies.com | ||
Whiteboard: |
Description
Niyas
2007-07-19 03:03:55 EDT
*** Bug 197085 has been marked as a duplicate of this bug. *** This is working because with this code you don't hit the problem method. If you write: class InterfaceCheck { public static void main(String[] args) { Manager1 ma1 = new Manager1(); ma1.getData1(); } } and you run it, you will get: Why this is working ? Exception in thread "main" java.lang.Error: Unresolved compilation problem: The type Manager1 must implement the inherited abstract method PersonManager.getData1() at com.lara.Manager1.getData1(Manager1.java:4) at com.lara.InterfaceCheck.main(InterfaceCheck.java:7) This works as expected. Closing as INVALID. Verified for 3.4M1 |