Bug 90484 - [1.5][compiler] Missing override annotation conflicts with Javac error checking
Summary: [1.5][compiler] Missing override annotation conflicts with Javac error checking
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-06 12:45 EDT by John Liu CLA
Modified: 2005-05-11 11:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Liu CLA 2005-04-06 12:45:20 EDT
When the warning on Eclipse 3.1M6 "Missing override annotation" is turned on it 
will flag such interfaces below as missing an "@Override" annotation.

public interface ObjectStreamer {
   ObjectStreamer clone();
}

Yet when the @Override tag is added it causes the following error to occur with 
javac and the code does not compile.

ObjectStreamer.java:2: method does not override a method from its superclass
   @Override
    ^
Comment 1 Philipe Mulet CLA 2005-04-18 11:16:13 EDT
Added AnnotationTest#test126.
Disabled check for interface methods.
Fixed
Comment 2 Philipe Mulet CLA 2005-04-21 09:11:50 EDT
Released
Comment 3 Olivier Thomann CLA 2005-05-11 11:42:16 EDT
Verified in I20050510-0010