Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 382345

Summary: [1.8][compiler] Compiler should not complain about unimplemented method where default implementation exists
Product: [Eclipse Project] JDT Reporter: Srikanth Sankaran <srikanth_sankaran>
Component: CoreAssignee: Stephan Herrmann <stephan.herrmann>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.8   
Target Milestone: BETA J8   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 383966    

Description Srikanth Sankaran CLA 2012-06-12 07:39:46 EDT
BETA_JAVA8

The following program triggers a message "The type X must implement the 
inherited abstract method I.foo()". This is incorrect as I.foo is not
abstract and has a default implementation.

// ----
interface I {
  void foo() default {}
}

class X implements I  {
}
Comment 1 Stephan Herrmann CLA 2012-06-30 19:19:18 EDT
This test case been released via commit 6568df4bb8cf7007403bfe9c238d05d28c5aa41e.

This has already been fixed via bug 382353 (change in MethodScope.createMethod()).