Bug 112231

Summary: [1.5][compiler] enum declaration
Product: [Eclipse Project] JDT Reporter: Dominik Gruntz <dominik.gruntz>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1.1   
Target Milestone: 3.1.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dominik Gruntz CLA 2005-10-11 11:57:31 EDT
Version: 3.1.1
Build id: M20050929-0840


The following code

// <<marker>>
public class Test4 {

	interface X {
		int values();
		
		enum E implements X {
			A, B, C;
		}
	}
}

is flagged with the marker "This static method cannot hide the instance 
method from Test4.X" at position 0. The error message is correct as the
implicitly generated static method values() in  enum E  cannot hide the
explicitly declared method values() in interface X, but the error message
should appear on the enum declaration.
Comment 1 Kent Johnson CLA 2005-10-17 12:53:19 EDT
Added EnumTest 125

Released into HEAD and 3.1.2 stream
Comment 2 Frederic Fusier CLA 2006-01-10 08:01:54 EST
Verified for 3.1.2 using build M20060109-1200.
Comment 3 Frederic Fusier CLA 2006-01-10 09:23:27 EST
Verified for 3.2 M4 using build I20051215-1506.