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
Repository Revision Date User Message
ASF #462525 Tue Oct 10 19:43:35 UTC 2006 clr JDO-427 JDO-429 JDO-431
StateTransitionsReturnedObjects.java is modified to make several state transitions
UNSPECIFIED, since the specification is ambiguous.
These changes apply only to the branches/2.0.1, as we intend to clarify the
specification for JDO 2.1 maintenance release.
Files Changed
MODIFY /db/jdo/branches/2.0.1/tck20/src/java/org/apache/jdo/tck/lifecycle/StateTransitionsReturnedObjects.java