[jira] Commented: (JDO-460) StateTransitions test fails on
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] Commented: (JDO-460) StateTransitions test fails on




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

    [jira] Commented: (JDO-460) StateTransitions test fails on  
Craig Russell (JIRA)


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


 
02-19-07 12:11 AM


[ https://issues.apache.org/jira/brow...action_12474011 ]

Craig Russell commented on JDO-460:
-----------------------------------

>OK. I have tried to fix this but come across the issue of the object state being pa
ssed in to this operation being incorrect. In the StateTransitions.java when creatin
g objects HOLLOW and P_NONTRANS are treated the same in general. This leads to a P_N
ONT
RANS being passed in to part 1 above, and HOLLOW being passed in to part 2 a
bove. Going backwards getHollowInstance() will sometimes return a P_NONTRANS
, and getPersistentNontransactionalInstance() will sometimes return a HOLLOW
 ... which upsets things a
little when there is different expected behaviour between these two.

Right. The spec was updated so that detachCopy with either HOLLOW or P_NONTR
ANS should transition to P_CLEAN. The rationale is that detaching instances 
causes their fields to be read, which should cause a transition to P_CLEAN w
ith a datastore transaction





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:05 PM.      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