--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BasicWrappingEList and the way how xtend generates the sortBy dont work together.
the artop wrapper classes seem to incomplete in their contract.
you may file a bug against artop for that.
i think a possible solution could be to actually wrap the list e.g. by using the following extension
def <T> List<T> wrap(List<T> unwrapped) {
val result = <T>newArrayList
var counter = 0
while(counter < unwrapped.size) {
result.add(unwrapped.get(counter))
counter++
}
result
}
println('''«canSM.canSMConfiguration.canSMManagerNetworks.wrap.sortBy[e|e.canSMComMNetworkHandleRef.comMChannelId].get(0).canSMComMNetworkHandleRef.comMChannelId»''')