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

Bug 342848

Summary: [xtend] nested enums not available as type literals
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: unspecifiedFlags: sebastian.zarnekow: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Moritz Eysholdt CLA 2011-04-14 10:35:48 EDT
for java interface

---
package pkg

interface intf {
   enum en {}
}
---

I would expect the type literal "pkg.intf$en" to be available in Xtend. But this literal can not be resolved.
Comment 1 Sebastian Zarnekow CLA 2011-07-17 15:36:09 EDT
Seems like this one was already resolved, e.g. the following Xtend code compiles fine:

import pack.intf

..

def something() {
  var pack.intf$en e = intf$en::Foo
  return null
}

with

package pack;

public interface intf {
	enum en {
		Foo, Bar
	}
}

Please reopen if this one is still reproducable for you.
Comment 2 Sebastian Zarnekow CLA 2011-07-17 15:43:45 EDT
Reopened: Something seems to be wrong with imports and nested types
Comment 3 Sebastian Zarnekow CLA 2011-07-17 16:53:34 EDT
Pushed to master.
Comment 4 Karsten Thoms CLA 2017-09-19 17:30:44 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:41:53 EDT
Closing all bugs that were set to RESOLVED before Neon.0