Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341243 - [xtend] Filter ambiguous extension imports
Summary: [xtend] Filter ambiguous extension imports
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: v2.5
Keywords:
Depends on: 376037
Blocks:
  Show dependency tree
 
Reported: 2011-03-29 10:56 EDT by Sebastian Zarnekow CLA
Modified: 2017-10-31 11:18 EDT (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 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.