Bug 221637

Summary: Try to improve exception handling in IDE
Product: [Eclipse Project] JDT Reporter: Sandeep Katheriya <sandeep.katheria>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: david_audel, Olivier_Thomann
Version: 3.2   
Target Milestone: 3.4 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Sandeep Katheriya CLA 2008-03-06 04:20:46 EST
I am using eclipse ide version 3.2 and when i tried to compile a program in IDE 
it gives compile time error but this program is working fine in native SDK plateform i.e using commad of javac and java

interface A {

    void f() throws CloneNotSupportedException;

}

interface B {

    void f() throws InterruptedException;

}

interface AB extends A, B {

}

public class C implements AB {

    public void f() {

        System.out.println("Sandeep");

    }

    public static void main(String[] args) {

        AB ab = new C();

        ab.f();

    }

}


above example is given in Java™ Puzzlers: Traps, Pitfalls, and Corner Cases" in  section of "Exceptionals  puzzles" and solution of this problem is also there.

regards,
Sandeep Katheriya
Comment 1 Olivier Thomann CLA 2008-03-06 08:59:57 EST

*** This bug has been marked as a duplicate of bug 79798 ***
Comment 2 David Audel CLA 2008-04-29 07:32:53 EDT
Verified for 3.4M7 using I20080427-2000