Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 94973 - [quick fix] add unimplemented methods for enum types
Summary: [quick fix] add unimplemented methods for enum types
Status: RESOLVED DUPLICATE of bug 88970
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-12 11:20 EDT by Jon Nall CLA
Modified: 2005-05-17 04:21 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 Jon Nall CLA 2005-05-12 11:20:55 EDT
the java code below contains an error:
The type EnumMissingMethod must implement the inherited abstract method Foo.method()

However, QuickFix does not provide "Add unimplemented methods". If the
EnumMissingMethod is changed from an enum to a class, "Add unimplemented
methods" appears in the QuickFix proposals.

I believe that "Add unimplemented methods" is an appropriate proposal for enums
in this scenario.

////////////////////////////////////////
interface Foo
{
    public void method();
}

enum EnumMissingMethod implements Foo {

}
/////////////////////////////////////////
Comment 1 Olivier Thomann CLA 2005-05-12 12:20:21 EDT
Move to JDT/UI
Comment 2 David Gates CLA 2005-05-16 16:28:08 EDT
Bug 88970 is a duplicate.
Comment 3 Martin Aeschlimann CLA 2005-05-17 04:21:46 EDT

*** This bug has been marked as a duplicate of 88970 ***