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

Bug 369190

Summary: Xtend2 doesn't check for different imports of the same simple name.
Product: [Modeling] TMF Reporter: Ed Merks <Ed.Merks>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan, sven.efftinge, tmf.xtext-inbox
Version: 2.3.0Flags: sven.efftinge: juno+
Target Milestone: M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ed Merks CLA 2012-01-20 04:41:57 EST
If you add imports like this:

import java.awt.List;
import java.util.List;

the only problems reported are that they're both not used.


If you try to use it like this

		val List<?> x = null

You get an error about List not resolving and one of the warnings on the imports goes away.

In Java, you'd get an error for the same simple name being imported with two different qualified names.
Comment 1 Jan Koehnlein CLA 2012-02-29 05:28:58 EST
Fixed in HEAD
Comment 2 Karsten Thoms CLA 2017-09-19 18:01:15 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 18:11:36 EDT
Closing all bugs that were set to RESOLVED before Neon.0