Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtend 2.3 may has a bug for generic type support(Xtend 2.3 may has a bug for generic type support)
Xtend 2.3 may has a bug for generic type support [message #884495] Mon, 11 June 2012 07:38 Go to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

index.php/fa/10253/0/

Above example was fine with xtend 2.1.

Xtend 2.3 can't generate java source code with same example.

So I did walk around like this:
class Test<E> {
    List<E> data = newArrayList();
    
    def add(E e){
        (data as List<E>).add(e);
    }
}


I can't sure is it already reported bug or not.
  • Attachment: xtend-bug.png
    (Size: 15.41KB, Downloaded 246 times)
Re: Xtend 2.3 may has a bug for generic type support [message #884519 is a reply to message #884495] Mon, 11 June 2012 08:31 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3108
Registered: July 2009
Senior Member
Hi,

I created a ticket: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382210

Thanks for the report,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 11.06.12 09:38, schrieb Jeeeyul Lee:
> Above example was fine with xtend 2.1.
>
> Xtend 2.3 can't generate java source code with same example.
>
> So I did walk around like this:
>
> class Test<E> {
> List<E> data = newArrayList();
>
> def add(E e){
> (data as List<E>).add(e);
> }
> }
>
>
> I can't sure is it already reported bug or not.
Previous Topic:Create simple standalone application with generator
Next Topic:local scope, qualified name and Cyclic resolution of lazy links
Goto Forum:
  


Current Time: Mon Oct 26 07:55:26 GMT 2020

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

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

Back to the top