Book a Demo

Author Topic: @annotations tag overwritten on PIM->PSM(java)  (Read 3549 times)

tremmert

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
@annotations tag overwritten on PIM->PSM(java)
« on: August 20, 2008, 05:27:09 am »
I realised a little odd thing that starts to annoy me quite a bit.

I am using a PIM model and am then using a java MDA transform to transform this into a java PSM, and out of this we generate code.

That all works fine.

But when I then add a class level @annotations tag in the PSM or in the java code and reverse engineer it back into the PSM, next time when I run the MDA transform, the @annotations tag only for the class has disappeared. All existing or new annotations of methods are still there, and are not overwritten.

I have for a test added a different tag to the PSM, just naming it "test" and that stays there even if the PIM does not have the tag.

This only occurs with the @annotations tag on a class, not on a method or property getter. Also, even if I add a @annotations tag to the PIM, still on running an MDA transform to a java PIM, again the tag dissappears.

Something seems to overwrite the @annotations tag in the class->class transform in the MDA PSM->PIM transform.

Cheers

thomas

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: @annotations tag overwritten on PIM->PSM(java)
« Reply #1 on: August 20, 2008, 11:07:12 pm »
Hi Thomas,

I can see why you are annoyed! This sounds like a bug; somehow the behavior that we expect when transforming attributes and operations is not carried over into annotations. Perhaps this situation applies elsewhere as well.

I suggest you send in a 'formal' bug report. If possible send a small project where this is happening. You'll find the correct report page by clicking on the Registered Users link at the top of any forum page. There is a link to the bug report close to the top of that page. You'll be able to attach your project file by using the buttons at the bottom of the form.

If you cannot use the Registered Users form, you will not be able to attach a file to the 'normal' form - the one you reach by clicking the Report a Bug link below the Support link near the bottom of any forum page - so I suggest you send an email to Sparx Support. Their address is at the top of the Support page (click either the link at the top of bottom of any forum page) or near the bottom of the About Us page.

Remember to compress your file before you attach it, since some mail servers will object to large attachments.

Please post back to tell us what Sparx has to say on this matter.

David
No, you can't have it!