Community
Participate
Working Groups
Given the following code: public class DeleteMe implements Type1, Type2 { } interface Type1 { void f() throws CloneNotSupportedException; } interface Type2 { void f() throws InterruptedException; } Navigate the cursor inside Deleteme and Select Source, and then Override/Implement Methods. Select f() and click OK. The signature for f() should be: void f() { }, not void f() throws CloneNotSupportedException { }; In fact, Eclipse complains: "Exception CloneNotSupportedException is not compatible with throws clause in Type2.f()". Note that I pulled this code directly from the book Java Puzzlers.
*** This bug has been marked as a duplicate of 79798 ***
This bug is not a duplicate of bug 79798. 'Override/Implement Methods' should insert: void f() { } and not: void f() throws CloneNotSupportedException { }
Moving to JDT/UI.
*** This bug has been marked as a duplicate of bug 129453 ***