Apache JDO Project - [jira] Commented: (JDO-460) StateTransitions test fails on

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > February 2007 > [jira] Commented: (JDO-460) StateTransitions test fails on





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] Commented: (JDO-460) StateTransitions test fails on
Craig Russell (JIRA)

2007-02-18, 7:11 pm


[ 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 passed in to this operation being incorrect. In the StateTransitions.java when creating objects HOLLOW and P_NONTRANS are treated the same in general. This leads to a P_NONT

RANS being passed in to part 1 above, and HOLLOW being passed in to part 2 above. 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_NONTRANS 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 with a datastore transaction
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com