Community
Participate
Working Groups
Copy paste the below code snippet to package explorer view. package p1; public interface I1 { public default int defaultMethod(){ return 10; } public static int staticMethod(){ return 20; } public int abstractMethod(); } package p1; public class Clazz1 implements I1{} Clazz1 has compiler error, invoke quick fix(Ctrl+1) on Clazz1 and select the option 'Add unimplemented methods'. This results in all the 3 methods in I1 to be overridden in Clazz1. 1. The refactoring results in compiler error as the static method is also overridden. 2. Should the default method be overriden through the quick fix? To resolve the compiler error, the user had to override the abstract method alone.
*** This bug has been marked as a duplicate of bug 409520 ***