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

Bug 406106

Summary: [validation][imports] Required import marked as unnecessary
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: christian.dietrich.opensource
Version: 2.4.0Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sebastian Zarnekow CLA 2013-04-19 11:52:33 EDT
If an imported class is used with an escape char ^, the import is flagged as unnecessary:

import java.util.List
class C {
  ^List<C> list
}


It does not matter whether the escape char is mandatory or not, e.g. the following is flagged, too:

import com.acme.^def

class C {
  ^def d
}
Comment 1 Christian Dietrich CLA 2016-09-01 07:09:40 EDT
can no longer be reproduced with Xtext 2.10