db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Watzek <mwa.t...@spree.de>
Subject Re: TCK : ResultClassRequirements.testNegative
Date Wed, 23 Nov 2005 18:18:57 GMT
Hi Andy,

the forth bullet of the assertion 14.6.12 says that if a result class is 
specified, then the algorithm applies which looks for public fields, 
public set methods, and put method.

The query below has an INTO clause specifying a result class. For this 
reason, the constructor LongString(long, String) should not be chosen.

Regards,
Michael
> Quick question about the INVALID_QUERIES. The first one has
> 
> SELECT personid, lastname INTO 
> org.apache.jdo.tck.query.result.classes.LongString FROM 
> org.apache.jdo.tck.pc.company.FullTimeEmployee
> 
> Now referring to 14.6.12, the impl needs to find a constructor taking the 
> expressions by position and type. It finds a constructor 
> LongString(long,String) and so can use it to create a result object. Why is 
> this supposed to throw an exception exactly ? OK, the expressions don't have 
> the same names as the fields in the result class, but is that important ?
> 


-- 
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------

Mime
View raw message