| Summary: | Xtend2 - wrong code generated for Enumeration used as parameter of Annotation | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Missing name Mising name <temp44> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow, sven.efftinge |
| Version: | 2.0.0 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
Thanks for the report. Pushed fix to master. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
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