Apache JDO Project - [jira] Closed: (JDO-409) IsTransactionalFalse makes invalid

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > September 2006 > [jira] Closed: (JDO-409) IsTransactionalFalse makes invalid





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Closed: (JDO-409) IsTransactionalFalse makes invalid
Michael Bouschen (JIRA)

2006-09-10, 7:11 pm

[ http://issues.apache.org/jira/browse/JDO-409?page=all ]

Michael Bouschen closed JDO-409.
--------------------------------

Resolution: Duplicate

Closed as a duplicate of JDO-400.

> IsTransactionalFalse makes invalid assumption that transaction is optimistic
> ----------------------------------------------------------------------------
>
> Key: JDO-409
> URL: http://issues.apache.org/jira/browse/JDO-409
> Project: JDO
> Issue Type: Bug
> Components: tck20
> Affects Versions: JDO 2 final
> Reporter: Marc Prud'hommeaux
>
> The test IsTransactionalFalse.testIsTransactionalFalse mandates that an instance will be persistent-clean after a field is accessed in a transaction. However, when the transaction type is optimistic, it is also valid for the instance to be persistent-no

ntransactional after a field access.
> The test can be fixed by ensuring that the transaction is a datastore transaction. E.g.:
> public void testIsTransactionalFalse() {
> pm = getPM();
> Transaction tx = pm.currentTransaction();
> tx.setOptimistic(false); // make sure the transaction is not optimisitic
> tx.begin();


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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com