Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351554

Summary: Xtend2 - wrong code generated for Enumeration used as parameter of Annotation
Product: [Modeling] TMF Reporter: Missing name Mising name <temp44>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: All   
Whiteboard:

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