Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Texo] Deleting an entity class from Ecore leads to NullPointerException
[Texo] Deleting an entity class from Ecore leads to NullPointerException [message #1220128] Mon, 09 December 2013 21:27 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 198
Registered: July 2009
Senior Member
Hi all,
if I delete an entity in my ecore file and later try to generate code
from annotationsmodel I get a NullpointerException saying that the
references in the file are wrong. How is the right way to rename/delete
classes or references from a model?

Regards,
Ralf.
Re: [Texo] Deleting an entity class from Ecore leads to NullPointerException [message #1220151 is a reply to message #1220128] Tue, 10 December 2013 06:56 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ralf,
Yes this can be made more robust. Can you enter a bugzilla for this? I will add a number of 'invalid' annotations models
to the testsuite. The idea I have is to ignore the annotations pointing to deleted model elements.

gr. Martin

On 12/09/2013 10:27 PM, Ralf Heydenreich wrote:
> Hi all,
> if I delete an entity in my ecore file and later try to generate code
> from annotationsmodel I get a NullpointerException saying that the
> references in the file are wrong. How is the right way to rename/delete
> classes or references from a model?
>
> Regards,
> Ralf.
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [Texo] Deleting an entity class from Ecore leads to NullPointerException [message #1220303 is a reply to message #1220151] Wed, 11 December 2013 00:20 Go to previous message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 198
Registered: July 2009
Senior Member
Am 10.12.2013 07:56, schrieb Martin Taal:> Hi Ralf,
> Yes this can be made more robust. Can you enter a bugzilla for this? I
> will add a number of 'invalid' annotations models to the testsuite. The
> idea I have is to ignore the annotations pointing to deleted model
> elements.
>
> gr. Martin
>

done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=423760

Regards,
Ralf.
Previous Topic:ExtendedMetaData annotation to provide different feature name for XML serialization
Next Topic:[Texo] How do I prevent JPA annotations from being generated on Java "interface"
Goto Forum:
  


Current Time: Mon Aug 19 18:09:52 GMT 2019

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

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

Back to the top