Issue Details (XML | Word | Printable)

Key: JDO-418
Type: Bug Bug
Status: Closed Closed
Resolution: Invalid
Priority: Minor Minor
Assignee: Unassigned
Reporter: Marc Prud'hommeaux
Votes: 0
Watchers: 0
Operations

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

StateTransitions incorrectly asserts that field access in a deleted instance will throw an exception

Created: 06/Sep/06 08:25 AM   Updated: 06/Sep/06 08:29 AM
Component/s: tck2
Affects Version/s: JDO 2 final
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 06/Sep/06 08:29 AM


 Description  « Hide

org.apache.jdo.tck.api.persistencemanager.DataStoreConnection assumes that the transaction returned from getDataStoreConnection will be re-used once a JDO transaction is started, but that assertion is only valid when using datastore transactions, and the test case does not ensure that a datastore transaction is being used.

The solution is to call "getPM().currentTransaction().setOptimistic(false);" just before "getPM().currentTransaction().begin();" in the testDataStoreConnection() test case.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Marc Prud'hommeaux added a comment - 06/Sep/06 08:29 AM
Accidentally cloned JDO-415 when I should have instead made a new issue. Marking as "Invalid".