[Ecore] Java 8 default methods for interfaces [message #1395347] |
Sun, 06 July 2014 16:14  |
Eclipse User |
|
|
|
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 12:15   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.34148 seconds