Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Ecore] Java 8 default methods for interfaces
[Ecore] Java 8 default methods for interfaces [message #1395347] Sun, 06 July 2014 20:14 Go to next message
Dennis Weir is currently offline Dennis WeirFriend
Messages: 2
Registered: March 2014
Junior Member
Hi,

I have tried using the Java 8 default methods for interfaces within an ecore model to minimise manually written code, but I couldn't find any drop-down choices or attributes to do this.
Editing the generated code didn't go too well either, since the defaults were not recognised and the empty methods were still generated in the classes, making the default methods obsolete.
Does anyone know a way to realise this, or is it just not possible yet?

Kind regards
Dennis
Re: [Ecore] Java 8 default methods for interfaces [message #1395933 is a reply to message #1395347] Mon, 07 July 2014 16:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31780
Registered: July 2009
Senior Member
Dennis,

Comments below.

On 07/07/2014 3:39 PM, Dennis Weir wrote:
> Hi,
>
> I have tried using the Java 8 default methods for interfaces within an
> ecore model to minimise manually written code, but I couldn't find any
> drop-down choices or attributes to do this.
No, we don't have any support for Java 8 yet, including not having the
ability to even parse it.
> Editing the generated code didn't go too well either, since the
> defaults were not recognised and the empty methods were still
> generated in the classes, making the default methods obsolete.
> Does anyone know a way to realise this, or is it just not possible yet?
Just not possible yet. Please open a bugzilla enhancement request. It
would be interest to explore what possible new code generation patterns
could be supported...
>
> Kind regards
> Dennis


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [Ecore] Java 8 default methods for interfaces [message #1396045 is a reply to message #1395933] Mon, 07 July 2014 20:07 Go to previous message
Dennis Weir is currently offline Dennis WeirFriend
Messages: 2
Registered: March 2014
Junior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=439068

First bug report, hope this suffices. If anything else is needed, just tell me!
Previous Topic:[Texo] Generator java version issue
Next Topic:Security scan issues
Goto Forum:
  


Current Time: Sat Mar 06 06:40:25 GMT 2021

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

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

Back to the top