Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Bypass Xtend's IterableExtensions when there's a conflict
Bypass Xtend's IterableExtensions when there's a conflict [message #1829912] Mon, 13 July 2020 20:53 Go to next message
Mirko Raner is currently offline Mirko RanerFriend
Messages: 98
Registered: July 2009
Location: New York City, NY
Member
Is there a way to bypass or disable Xtend's IterableExtensions extension methods when they collide with other methods? Specifically, my problem is invoking net.bytebuddy.matcher.FilterableList.filter(ElementMatcher). I even tried adding some type hints, but IterableExtensions.filter always seems to win out because FilterableList eventually extends Iterable.

How can I express that I don't want to use the extension method in this case?
Re: Bypass Xtend's IterableExtensions when there's a conflict [message #1829913 is a reply to message #1829912] Mon, 13 July 2020 20:55 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13628
Registered: July 2009
Senior Member
If you don't use the extension method / syntax then this should
Work ootb and otherwise would be a bug.
Can you please provide a reproducible example project


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How to use FileResourceHandler in xtext web for importUri resolution
Next Topic:Fuzzy grammar advice
Goto Forum:
  


Current Time: Thu Oct 22 13:31:43 GMT 2020

Powered by FUDForum. Page generated in 0.01762 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top