Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351554 - Xtend2 - wrong code generated for Enumeration used as parameter of Annotation
Summary: Xtend2 - wrong code generated for Enumeration used as parameter of Annotation
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 08:02 EDT by Missing name Mising name CLA
Modified: 2017-09-19 17:11 EDT (History)
2 users (show)

See Also:
sven.efftinge: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name Mising name CLA 2011-07-08 08:02:34 EDT
Build Identifier: I20110613-1736

Trying to write a validator in Xtend2, I added the "@Check(CheckType::NORMAL)" annotation to a Xtend2 class method. In the generated Java class, I got "@Check(CheckType.)", resulting in a compilation error.

Reproducible: Always

Steps to Reproduce:
1. Create Xtend2 class
2. Create a method in the class, e.g. "def checkSomething() { return '';}"
3. Annotate the method with "@Check(CheckType::NORMAL)"
4. Observe the generated Java class file, the method annotation looks like "@Check(CheckType.)", resulting in a compilation error
Comment 1 Sebastian Zarnekow CLA 2011-07-12 16:46:20 EDT
Thanks for the report. 

Pushed fix to master.
Comment 2 Karsten Thoms CLA 2017-09-19 16:59:57 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:11:23 EDT
Closing all bugs that were set to RESOLVED before Neon.0