Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » GenModel - Java 8 support
GenModel - Java 8 support [message #1274442] Fri, 21 March 2014 13:24 Go to next message
Jonathan Laval is currently offline Jonathan LavalFriend
Messages: 15
Registered: March 2014
Junior Member
Is java 8 actually supported ?
Re: GenModel - Java 8 support [message #1274521 is a reply to message #1274442] Fri, 21 March 2014 15:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Jonathan,

How would Java 8 impact what EMF generates?

On 21/03/2014 6:24 AM, Jonathan Laval wrote:
> Is java 8 actually supported ?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: GenModel - Java 8 support [message #1276428 is a reply to message #1274521] Mon, 24 March 2014 14:51 Go to previous messageGo to next message
Jonathan Laval is currently offline Jonathan LavalFriend
Messages: 15
Registered: March 2014
Junior Member
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 14:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: GenModel - Java 8 support [message #1276443 is a reply to message #1276433] Mon, 24 March 2014 15:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 15:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: GenModel - Java 8 support [message #1276476 is a reply to message #1276457] Mon, 24 March 2014 16:07 Go to previous messageGo to next message
Jonathan Laval is currently offline Jonathan LavalFriend
Messages: 15
Registered: March 2014
Junior Member
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 16:21 Go to previous messageGo to next message
Jonathan Laval is currently offline Jonathan LavalFriend
Messages: 15
Registered: March 2014
Junior Member
Bug open under #431040

Duplicated #370628

Thanks
Re: GenModel - Java 8 support [message #1276502 is a reply to message #1276476] Mon, 24 March 2014 16:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: GenModel - Java 8 support [message #1276991 is a reply to message #1276502] Tue, 25 March 2014 10:15 Go to previous messageGo to next message
Jonathan Laval is currently offline Jonathan LavalFriend
Messages: 15
Registered: March 2014
Junior Member
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 10:19 Go to previous message
Jonathan Laval is currently offline Jonathan LavalFriend
Messages: 15
Registered: March 2014
Junior Member
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: Sat Apr 20 01:59:03 GMT 2024

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

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

Back to the top