|
Home > Archive > Apache JDO Project > November 2005 > TCK : ResultClassRequirements test - LongString class
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
TCK : ResultClassRequirements test - LongString class
|
|
| Andy Jefferson 2005-11-22, 5:45 pm |
| The result class LongString has a field "private long l", yet the construct=
or=20
and setter are taking in an "int". This results in failures in the checks=20
that JPOX makes. Is this intentional ?=20
I would refer to 14.6.12
<spec>
if no public field matches the name and type, a public =E2=80=9Cset=E2=80=
=9D method that=20
returns void and matches the name of the result expression and takes a sing=
le=20
parameter which is the exact type of the result expression;
</spec>
The type must match.
=2D-=20
Andy
| |
| Michael Watzek 2005-11-22, 5:45 pm |
| Hi Andy,
this is a bug in class LongString. The parameter "l" in the constructor
and in the setter must have type long. I'll fix that.
Regards,
Michael
> The result class LongString has a field "private long l", yet the constructor
> and setter are taking in an "int". This results in failures in the checks
> that JPOX makes. Is this intentional ?
>
> I would refer to 14.6.12
> <spec>
> if no public field matches the name and type, a public “set” method that
> returns void and matches the name of the result expression and takes a single
> parameter which is the exact type of the result expression;
> </spec>
>
> The type must match.
>
--
-------------------------------------------------------------------
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/
-------------------------------------------------------------------
| |
| Michael Watzek 2005-11-22, 5:45 pm |
| Hi Andy,
I checked in the fix (Revision 348189).
Regards,
Michael
> Hi Andy,
>
> this is a bug in class LongString. The parameter "l" in the constructor
> and in the setter must have type long. I'll fix that.
>
> Regards,
> Michael
>
>
>
--
-------------------------------------------------------------------
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/
-------------------------------------------------------------------
|
|
|
|
|