Issue Details (XML | Word | Printable)

Key: JDO-429
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Craig Russell
Reporter: Marc Prud'hommeaux
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

StateTransitionsReturnedObjects assumes that serializing deleted instances will transition them to transient

Created: 17/Sep/06 06:51 AM   Updated: 10/Oct/06 07:44 PM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 final
Fix Version/s: JDO 2 TCK challenge fixes

Time Tracking:
Not Specified

Resolution Date: 10/Oct/06 07:44 PM


 Description  « Hide
Elements 7 and 8 (0-based) of the "serialize with active tx" array in org/apache/jdo/tck/lifecycle/StateTransitionsReturnedObjects.java assert that a persistent-new-deleted and persistent-deleted instance (respectively) will transition to transient when then are serialized then deserialized. However, the specification does not seem to mandate this anywhere: detached-clean should be an equally valid state to be in.

The easiest fix, short of changing the test case to allow for multiple states, is to change elements 7 and 8 from "TRANSIENT" to "IMPOSSIBLE", which will disable the state check altogether.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell made changes - 04/Oct/06 09:18 PM
Field Original Value New Value
Assignee Craig Russell [ clr ]
Craig Russell made changes - 04/Oct/06 09:18 PM
Fix Version/s JDO 2 maintenance release 1 [ 12310923 ]
Fix Version/s JDO 2.0 TCK challenge fixes [ 12312093 ]
Craig Russell made changes - 10/Oct/06 07:44 PM
Fix Version/s JDO 2 maintenance release 1 [ 12310923 ]
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]