Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Redefined feature diagnostic.
Redefined feature diagnostic. [message #478266] Thu, 26 March 2009 20:06 Go to next message
Faron is currently offline FaronFriend
Messages: 2
Registered: July 2009
Junior Member
Hi all,

Class A defines a property x of Type T.
Class B specializes A and also defines a property x (same name) of type U.
Class U specializes class T making property x covariant.

In the model, I have set the Redefined Property on B::x to A::x

I then open the New EMF Model wizard to create the genmodel, select the
UML
model, click next, etc.
I am presented with the UML Import dialog, which has the Redefining
Properties setting set to Report.
I click the Load button, which give me a Warning Dialog with the following
message:
Feature 'B::x' should be annotated as redefinition of feature 'A::x'.

I do not understand why I get this message since I have set the Redefined
Property on B::x to A::x. Is there something I'm missing?

Thanks,
Faron.


UML2 v2.2.2.v200902101430
Eclipse 3.4.1
Java 1.6
Re: Redefined feature diagnostic. [message #478272 is a reply to message #478266] Tue, 31 March 2009 01:15 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Faron,

I believe you are seeing this because you chose to "report" on the
redefining properties option as opposed to "processing" them. Although
the warning is a bit alarming it is harmless and just indicates that
something further needs to be done before generating code from your new EMF
project.

I would suggest using the "process" option in order to get better results.

- James.


"Faron " <faron.dutton@hp.com> wrote in message
news:95089428b31723624ab27d100486690e$1@www.eclipse.org...
> Hi all,
>
> Class A defines a property x of Type T.
> Class B specializes A and also defines a property x (same name) of type U.
> Class U specializes class T making property x covariant.
>
> In the model, I have set the Redefined Property on B::x to A::x
>
> I then open the New EMF Model wizard to create the genmodel, select the
> UML model, click next, etc.
> I am presented with the UML Import dialog, which has the Redefining
> Properties setting set to Report.
> I click the Load button, which give me a Warning Dialog with the following
> message:
> Feature 'B::x' should be annotated as redefinition of feature 'A::x'.
>
> I do not understand why I get this message since I have set the Redefined
> Property on B::x to A::x. Is there something I'm missing?
>
> Thanks,
> Faron.
>
>
> UML2 v2.2.2.v200902101430
> Eclipse 3.4.1
> Java 1.6
>
Re: Redefined feature diagnostic. [message #627461 is a reply to message #478266] Tue, 31 March 2009 01:15 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Faron,

I believe you are seeing this because you chose to "report" on the
redefining properties option as opposed to "processing" them. Although
the warning is a bit alarming it is harmless and just indicates that
something further needs to be done before generating code from your new EMF
project.

I would suggest using the "process" option in order to get better results.

- James.


"Faron " <faron.dutton@hp.com> wrote in message
news:95089428b31723624ab27d100486690e$1@www.eclipse.org...
> Hi all,
>
> Class A defines a property x of Type T.
> Class B specializes A and also defines a property x (same name) of type U.
> Class U specializes class T making property x covariant.
>
> In the model, I have set the Redefined Property on B::x to A::x
>
> I then open the New EMF Model wizard to create the genmodel, select the
> UML model, click next, etc.
> I am presented with the UML Import dialog, which has the Redefining
> Properties setting set to Report.
> I click the Load button, which give me a Warning Dialog with the following
> message:
> Feature 'B::x' should be annotated as redefinition of feature 'A::x'.
>
> I do not understand why I get this message since I have set the Redefined
> Property on B::x to A::x. Is there something I'm missing?
>
> Thanks,
> Faron.
>
>
> UML2 v2.2.2.v200902101430
> Eclipse 3.4.1
> Java 1.6
>
Previous Topic:References in stereotype properties (tag values).
Next Topic:References in stereotype properties (tag values).
Goto Forum:
  


Current Time: Mon Apr 23 15:42:08 GMT 2018

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

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