[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] emf error detected; override with covariant return type over two levels of inheritance does not work correctly
|
- From: "Philipp W. Kutter" <kutter@xxxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 13:09:33 +0100
- Newsgroups: eclipse.tools.emf
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.13 (Windows/20070809)
Hi, Everybody.
After starting to apply the pattern in the "taking advantage of Java 5.0
.." post, I detected the following error.
Given the following class diagram (attachment Override.jpg) everything
works well, until the SuperSuperC class is added.
The generator by error thinks that the two getRef operations are the
same, and only generates the signature for SuperSuperC.
By simply adding "public SuperD getRef() {return null;};"
to SuperCImpl, the problem is fixed.
Best, Philipp
PS: I have a version where the many features are overriden like this. It
follows the pattern from the "taking advantage of Java 5.0 .." post. The
same error happens there. I can post this example too.

Attachment:
Override.zip
Description: Zip compressed data