Hello,
I figured out following problem in the torque 3.0 b4/b5 I started with the
standard "newapp"
from tdk 2.2 and modifiy the schma.xml by adding the following table,which
should be a subclass from the standard rdf:
***
<table name="subRDF" idMethod="idbroker"
baseClass="org.mycompany.newapp.om.Rdf"
basePeer="org.mycompany.newapp.om.RdfPeer">
<column name="RDF_ID" required="true" primaryKey="true" type="INTEGER"/>
<column name="SUB" size="255" type="VARCHAR"/>
</table>
***
If i now make an "ant init" I'm getting some errors in the classes
BaseSubrdf and BaseSubrdfPeer, ...
which say:
***
The return type is incompatible with
org.mycompany.newapp.om.BaseRdf.copy(),
org.mycompany.newapp.om.BaseSubrdf.copy()
Subrdf.java newapp/src/java/org/mycompany/newapp/om line 16 in Subrdf
The return type is incompatible with
org.mycompany.newapp.om.BaseRdf.getPeer(),
org.mycompany.newapp.om.BaseSubrdf.getPeer()
Subrdf.java newapp/src/java/org/mycompany/newapp/om line 16 in Subrdf
***
Could it be that theres a bug because getPeer() will never work in
BaseSubrdf because it is returning SubrdfPeer.
And BaseRdf is return an RdfPeer but since BaseSubrdf is an sub class of
Baserdf it must also retrun an subclass of RdfPeer. (covariant overriding)
I hope i got it right, because its rather irritating ... if not feel free
to ask [EMAIL PROTECTED]
thx, gandulf kohlweiss
--
To unsubscribe, e-mail: <mailto:turbine-torque-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-dev-help@;jakarta.apache.org>
