Skip to main content



      Home
Home » Modeling » EMF » GenModel - Java 8 support
GenModel - Java 8 support [message #1274442] Fri, 21 March 2014 09:24 Go to next message
Eclipse UserFriend
Is java 8 actually supported ?
Re: GenModel - Java 8 support [message #1274521 is a reply to message #1274442] Fri, 21 March 2014 11:38 Go to previous messageGo to next message
Eclipse UserFriend
Jonathan,

How would Java 8 impact what EMF generates?

On 21/03/2014 6:24 AM, Jonathan Laval wrote:
> Is java 8 actually supported ?
Re: GenModel - Java 8 support [message #1276428 is a reply to message #1274521] Mon, 24 March 2014 10:51 Go to previous messageGo to next message
Eclipse UserFriend
I use lambda expression in EMF object and have compilation failure when I generate model from genModel
Re: GenModel - Java 8 support [message #1276433 is a reply to message #1276428] Mon, 24 March 2014 10:58 Go to previous messageGo to next message
Eclipse UserFriend
Jonathan,

Comments below.

On 24/03/2014 7:51 AM, Jonathan Laval wrote:
> I use lambda expression in EMF object
Where? In an annotation's body operation?
> and have compilation failure when I generate model from genModel
Open a bugzilla and I'll add a constant for 1.8 compliance to the
GenModel....

You might consider using Xcore instead, in which case you can uses
Xbase's Lambdas but compile them down to 1.5 compliance...
Re: GenModel - Java 8 support [message #1276443 is a reply to message #1276433] Mon, 24 March 2014 11:17 Go to previous messageGo to next message
Eclipse UserFriend
On 24.03.14 07:58, Ed Merks wrote:
> Jonathan,
>
> Comments below.
>
> On 24/03/2014 7:51 AM, Jonathan Laval wrote:
>> I use lambda expression in EMF object
> Where? In an annotation's body operation?
>> and have compilation failure when I generate model from genModel
> Open a bugzilla and I'll add a constant for 1.8 compliance to the
> GenModel....
>
> You might consider using Xcore instead, in which case you can uses
> Xbase's Lambdas but compile them down to 1.5 compliance...

but then they are not lambdas in the Java8 sense ;-)

Tom
Re: GenModel - Java 8 support [message #1276457 is a reply to message #1276443] Mon, 24 March 2014 11:30 Go to previous messageGo to next message
Eclipse UserFriend
Tom,

It seems likely that Xbase will eventually compile to real Java lambdas,
but in the end, it all compiles down to byte code so it's only the
elegance of the source representation that seems relevant...

Of course it's not entirely clear of what's meant by "I use lambda
expression in EMF object"...

On 24/03/2014 8:17 AM, Tom Schindl wrote:
> On 24.03.14 07:58, Ed Merks wrote:
>> Jonathan,
>>
>> Comments below.
>>
>> On 24/03/2014 7:51 AM, Jonathan Laval wrote:
>>> I use lambda expression in EMF object
>> Where? In an annotation's body operation?
>>> and have compilation failure when I generate model from genModel
>> Open a bugzilla and I'll add a constant for 1.8 compliance to the
>> GenModel....
>>
>> You might consider using Xcore instead, in which case you can uses
>> Xbase's Lambdas but compile them down to 1.5 compliance...
> but then they are not lambdas in the Java8 sense ;-)
>
> Tom
Re: GenModel - Java 8 support [message #1276476 is a reply to message #1276457] Mon, 24 March 2014 12:07 Go to previous messageGo to next message
Eclipse UserFriend
I use stream to manipulate collections.

That seem preferable for me that you add a constant for 1.8 compliance to the GenModel
Re: GenModel - Java 8 support [message #1276483 is a reply to message #1276476] Mon, 24 March 2014 12:21 Go to previous messageGo to next message
Eclipse UserFriend
Bug open under #431040

Duplicated #370628

Thanks
Re: GenModel - Java 8 support [message #1276502 is a reply to message #1276476] Mon, 24 March 2014 12:55 Go to previous messageGo to next message
Eclipse UserFriend
Jonathan,

Do you do that in hand written code? Of course you can set JDT's
preferences for the project yourself and of course if you want Java 1.8
support from JDT, you'll need to install that too.

On 24/03/2014 9:07 AM, Jonathan Laval wrote:
> I use stream to manipulate collections.
> That seem preferable for me that you add a constant for 1.8 compliance
> to the GenModel
>
Re: GenModel - Java 8 support [message #1276991 is a reply to message #1276502] Tue, 25 March 2014 06:15 Go to previous messageGo to next message
Eclipse UserFriend
The problem occurred when I generate model (compilation failure)

It's not a problem in JDT (I use 4.4 - 18-03-14)
Re: GenModel - Java 8 support [message #1276992 is a reply to message #1276428] Tue, 25 March 2014 06:19 Go to previous message
Eclipse UserFriend
Jonathan Laval wrote on Mon, 24 March 2014 10:51
I use lambda expression in EMF object and have compilation failure when I generate model from genModel


When I regenerate, if object contains hand written code with lambda, I've a compilation failure
Previous Topic:CDOQuery sql delete statement
Next Topic:[CDO] Auto release lock on transaction or session close ?
Goto Forum:
  


Current Time: Tue Jul 15 03:40:19 EDT 2025

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

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

Back to the top