Bug 112231 - [1.5][compiler] enum declaration
Summary: [1.5][compiler] enum declaration
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1.2   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 11:57 EDT by Dominik Gruntz CLA
Modified: 2006-01-10 09:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.