[jira] Created: (JDO-412) Expectation of jdoPostLoad() invocation
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Created: (JDO-412) Expectation of jdoPostLoad() invocation




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Created: (JDO-412) Expectation of jdoPostLoad() invocation  
Marc Prud'hommeaux (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-30-06 12:11 PM

Expectation of jdoPostLoad() invocation does not take into account the possi
bility of persistent-nontransactional state
----------------------------------------------------------------------------
-------------------------------------------

Key: JDO-412
URL: http://issues.apache.org/jira/browse/JDO-412
Project: JDO
Issue Type: Bug
Components: tck20
Affects Versions: JDO 2 final
Reporter: Marc Prud'hommeaux
Priority: Minor



Some tests assume that jdoPostLoad() will be called, but do not take into ac
count the possibilty that persistent-nontransactional is a valid state, and 
that jdoPostLoad() is not invoked for those instances. The solution should b
e to force instances to be
transitioned to persistent-clean after commit by setting RetainValues=false.

This affects the following tests:

org.apache.jdo.tck.api.instancecallbacks.CallingJdoPostload.test
org.apache.jdo.tck.api.instancecallbacks.ModificationOfNontransactionalNonpe
rsistentFields.test

The solution is to invoke "setRetainValues(false)" after obtaining the trans
action in both the test cases. E.g.:

Transaction t = pm.currentTransaction();
t.setRetainValues(false);


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








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:48 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register