Bug 82590 - [compiler] [1.5] internal compiler reports method not implemented
Summary: [compiler] [1.5] internal compiler reports method not implemented
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 81729 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-11 13:20 EST by Ralf Behle CLA
Modified: 2005-02-15 05:53 EST (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 Ralf Behle CLA 2005-01-11 13:20:03 EST
For the given example the internal compiler reports that the method test of
interface B should be implemented. Sun's javac has no problems with this example.

public enum A implements B {

	Z {
		public void test() {};
	},
	
	X {
		public void test() {};
	}
}

interface B {
	
	public void test();
	
}
Comment 1 Philipe Mulet CLA 2005-01-13 18:51:48 EST
Indeed, compiler should not request abstract methods to be implemented when all
enum constants supply their own body.

Added regression test: EnumTest#test064.
Fixed
Comment 2 Philipe Mulet CLA 2005-01-14 06:58:08 EST
Fixed
Comment 3 Philipe Mulet CLA 2005-01-14 09:41:05 EST
*** Bug 81729 has been marked as a duplicate of this bug. ***
Comment 4 Jerome Lanneluc CLA 2005-02-15 05:53:16 EST
Verified in I20040214