Issue Details (XML | Word | Printable)

Key: JDO-424
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
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

StateTransitions makes undocumented assertions in detachCopy with active tx

Created: 13/Sep/06 02:15 AM   Updated: 09/Oct/06 10:43 PM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 final
Fix Version/s: JDO 2 maintenance release 1, JDO 2 TCK challenge fixes

Time Tracking:
Not Specified

Resolution Date: 09/Oct/06 10:43 PM


 Description  « Hide
In StateTransitions.java, a couple of the transition assertions that are made in the "detachCopy with active tx" scenario are not documented:

Element 4 (0-based) asserts that HOLLOW will remain UNCHANGED when detachCopy() is called on them. However, this doesn't seem to be anywhere in the spec, and also doesn't seem right, since a hollow instance would need to instantiate its fields in order to cascade the detach operation (subject to the setting of the DETACH_LOAD_FIELDS setting).

Element 9 asserts that a PERSISTENT_NONTRANSACTIONAL instance will remain unchanged. However, for the same reason as above, it might transition to persistent-clean due to reading a field.


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