Bug 71007

Summary: [1.5] Qualified name not supported as member value
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2004-07-28 14:18:40 EDT
Using latest, the following code doesn't compile. A syntax error is reported.

enum Bar {
	CONSTANT
}
@interface Foo {
	Bar value();
}

@Foo(Bar.CONSTANT) class X {
}

Bar.CONSTANT should be legal.

The problem comes from the MemberValue rule that takes a conditional expression
that is not a Name.
Comment 1 Olivier Thomann CLA 2004-07-28 15:12:33 EDT
Fixed and released in HEAD.
Regression test added in Converter15 (test0034)