Bug 82590

Summary: [compiler] [1.5] internal compiler reports method not implemented
Product: [Eclipse Project] JDT Reporter: Ralf Behle <ralf.be>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: psk
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Linux   
Whiteboard:

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