Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342848 - [xtend] nested enums not available as type literals
Summary: [xtend] nested enums not available as type literals
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-14 10:35 EDT by Moritz Eysholdt CLA
Modified: 2017-09-19 17:41 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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