Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 383966 - [1.8][compiler] analyze inheritance and overriding involving one or more default methods
Summary: [1.8][compiler] analyze inheritance and overriding involving one or more defa...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: BETA J8   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 382345 382347 382355 388739 391376 401246 401796 404649
Blocks: 380501
  Show dependency tree
 
Reported: 2012-06-30 13:58 EDT by Stephan Herrmann CLA
Modified: 2013-03-31 18:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2012-06-30 13:58:27 EDT
Looking at JSR 335 draft spec 0.5.1 section G I see the following tasks
regarding inheritance/overriding involving default methods:

Report new/modified errors:

9.4.1:
  "It is a compile-time error if an interface I inherits a default method
   whose signature is override-equivalent with another method inherited by I.
   This is the case whether the other method is abstract or has a default."

9.4.3:
  "It is a compile-time error if an interface method with a default body is 
   override-equivalent with a public instance method of the class Object, ..."

8.4.8.4 (modified):
  "It is a compile-time error if a class C inherits a non-abstract method
   whose signature is override-equivalent with another method inherited by C."


In the same context the computation of inherited methods must be checked
against changes in 9.4.1 and 8.4.8.

Also, which method to consider as overriding must be updated in accordance
with the same paragraphs.

Finally, method lookup must be updated according to changes in 15.12.1 ff.

This tasks may require further break down into smaller tasks as we go.
Comment 1 Stephan Herrmann CLA 2013-03-31 18:04:26 EDT
With all sub-tasks resolved, I declare this bug resolved wrt the 0.6.2 spec draft.