#17 Improper state transitions for PNT instances

v2.0_Beta2
closed-fixed
Mike Martin
Core (19)
5
2003-08-03
2003-05-28
David Ezzio
No

Hi guys,

Specification 1.0 Section 5.6.1:

"A persistent-nontransactional instance transitions to persistent-clean if any managed field
is accessed when a data store transaction is in progress. The state of the instance in memory
is discarded and the state is loaded from the data store."

This is not happening with TJDO Beta 3. A PNT instance remains PNT after persistent fields are
accessed with a DS tx active. Also, the default fetch group fields of a PNT instance can be accessed
when a tx is not active and the NTR property is off. A JDOUserException should be thrown instead.

David Ezzio

Discussion

  • Mike Martin
    Mike Martin
    2003-08-03

    • assigned_to: nobody --> jackknifebarber
    • status: open --> closed-fixed
     
  • Mike Martin
    Mike Martin
    2003-08-03

    Logged In: YES
    user_id=582193

    P_NONTRANS-related state transitions have been fixed as a
    part of recent work to pass the TCK. Or they've been fixed so
    far as testing has progressed. :) I *think* we've got all the
    transitions handled correctly now, but I know for sure that
    the changes should specifically have fixed the two scenarios
    you describe.

    Mike