Bug 467018 - [imports] Organize imports introduces an error
Summary: [imports] Organize imports introduces an error
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.9.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-11 11:15 EDT by Jan Koehnlein CLA
Modified: 2017-03-04 07:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Koehnlein CLA 2015-05-11 11:15:54 EDT
Organize imports shortens the fully qualified type literal in

class Foo {
  def getEClass() {
    org.eclipse.emf.ecore.EClass
  }
}

and by that introduces an error.

Workaround: Use typeof(EClass) instead.
Comment 1 Christian Dietrich CLA 2017-03-04 07:40:54 EST
similar problem at https://github.com/eclipse/xtext-eclipse/issues/154