Redefined feature diagnostic. [message #478266] |
Thu, 26 March 2009 16:06  |
Eclipse User |
|
|
|
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] |
Mon, 30 March 2009 21:15  |
Eclipse User |
|
|
|
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] |
Mon, 30 March 2009 21:15  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03766 seconds