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

Bug 341243

Summary: [xtend] Filter ambiguous extension imports
Product: [Tools] Xtend Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sven.efftinge
Version: 2.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: v2.5
Bug Depends on: 376037    
Bug Blocks:    

Description Sebastian Zarnekow CLA 2011-03-29 10:56:17 EDT
import static extension java.lang.Double.*
import static extension java.lang.Integer.*

both allow to use valueOf(String) so we should hide both from the scope similar to what we do with ambiguous wildcard imports in the ImportScope.

See discussion in bug 340459
Comment 1 Sebastian Zarnekow CLA 2013-09-12 11:34:06 EDT
Ambiguous extension imports will be flagged if they are used, e.g an expression
''.valueOf will raise this error:

Ambiguous feature call.
The extension methods
	valueOf(String) in Double and
	valueOf(String) in Integer
both match.
Comment 2 Sebastian Zarnekow CLA 2013-09-15 07:14:41 EDT
Merged into master.
Comment 3 Eclipse Webmaster CLA 2017-10-31 11:07:32 EDT
Requested via bug 522520.

-M.
Comment 4 Eclipse Webmaster CLA 2017-10-31 11:18:58 EDT
Requested via bug 522520.

-M.