Bug 225577 - [compiler] Default abstract methods should be tagged as synthetic
Summary: [compiler] Default abstract methods should be tagged as synthetic
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 225517 (view as bug list)
Depends on:
Blocks: 225517
  Show dependency tree
 
Reported: 2008-04-03 10:53 EDT by Olivier Thomann CLA
Modified: 2008-04-29 10:41 EDT (History)
2 users (show)

See Also:


Attachments
Proposed fix (7.49 KB, patch)
2008-04-03 14:36 EDT, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2008-04-03 10:53:23 EDT
The default abstract methods added in 1.3 mode (-source 1.3 and -target 1.1) should be tagged as synthetic.
javac 1.6, 1.5 and 1.4.2 are doing the same.
They also report the error against the interface method and not the one defined in the asbtract class.

Tests case:
public class X extends Y {}
public abstract class Y implements I {}
public interface I {
  void foo();
}
Comment 1 Olivier Thomann CLA 2008-04-03 14:17:15 EDT
Proposed fix is attached in bug 225517.
Comment 2 Olivier Thomann CLA 2008-04-03 14:36:36 EDT
Created attachment 94761 [details]
Proposed fix
Comment 3 Olivier Thomann CLA 2008-04-03 14:36:57 EDT
Released for 3.4M7.
Updated regression test org.eclipse.jdt.core.tests.builder.AbstractMethodTests#test002 and added org.eclipse.jdt.core.tests.builder.AbstractMethodTests#test003
Comment 4 Olivier Thomann CLA 2008-04-03 14:43:55 EDT
*** Bug 225517 has been marked as a duplicate of this bug. ***
Comment 5 Kent Johnson CLA 2008-04-29 10:41:09 EDT
Verified for 3.4M7 using I20080429-0100