Bug 71007 - [1.5] Qualified name not supported as member value
Summary: [1.5] Qualified name not supported as member value
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-28 14:18 EDT by Olivier Thomann CLA
Modified: 2005-01-11 11:02 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 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)