Bug 101473 - Problem when implementing generic interface with method that has enum parameter
Summary: Problem when implementing generic interface with method that has enum parameter
Status: RESOLVED DUPLICATE of bug 101380
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-23 11:26 EDT by Emerson Murphy-Hill CLA
Modified: 2005-06-23 11:31 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 Emerson Murphy-Hill CLA 2005-06-23 11:26:45 EDT
Problem with code similar to:

public class MyClass implements MyInterface{

	public void myMethod(myEnum value) {
		System.out.println("value is "+value);
	}

	public static void main(String[] args){
		new MyClass().myMethod(myEnum.one);		
	}
}

interface MyInterface<T> {

	enum myEnum {one,two};
	
	public void myMethod(myEnum value); 
}

Says "The type MyClass must implement the inherited abstract method
MyInterface.myMethod (MyInterface.myEnum)"

3.1/RC3
Comment 1 Emerson Murphy-Hill CLA 2005-06-23 11:31:01 EDT

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