db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (JDO-144) Incorrect value for public Collection CollectionOfDate12
Date Wed, 05 Oct 2005 08:01:48 GMT
     [ http://issues.apache.org/jira/browse/JDO-144?page=all ]

Andy Jefferson reassigned JDO-144:
----------------------------------

    Assign To: Andy Jefferson  (was: Michelle Caisse)

The reason you get a "org.jpox.sco.Collection" when inspecting the type of the collection
field *whilst within the transaction* is that a JDO implementation has to be able to detect
changes to the Collection field (addition of elements, removal of elements, etc). If you'd
done it outside the transaction then it would have been java.util.Vector. The TCK cannot justifiably
test for the type of the collection field (since it may be a JDO impl wrapper type) but it
can justifiably test for whether it is "instanceof" the expected type. The error in that particular
part is that JPOX is assigning a wrapper type of the declared type and not of the instantiated
type, and consequently the cast fails.

> Incorrect value for public Collection CollectionOfDate12
> --------------------------------------------------------
>
>          Key: JDO-144
>          URL: http://issues.apache.org/jira/browse/JDO-144
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Michelle Caisse
>     Assignee: Andy Jefferson

>
> [java] 1) test(org.apache.jdo.tck.models.fieldtypes.TestCollectionCollections)junit.framework.AssertionFailedError:
Assertion A6.4.3-33 (TestCollectionCollections) failed:
> [java] Incorrect value for public Collection CollectionOfDate12
> [java]      at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:546)
> [java]      at org.apache.jdo.tck.models.fieldtypes.TestCollectionCollections.checkValues(TestCollectionCollections.java:146)
> [java]      at org.apache.jdo.tck.models.fieldtypes.TestCollectionCollections.runTest(TestCollectionCollections.java:104)
> [java]      at org.apache.jdo.tck.models.fieldtypes.TestCollectionCollections.test(TestCollectionCollections.java:69)
> [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
> [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:115)
> [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:93)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message