JDO
  1. JDO
  2. JDO-479

Incorrect state transition for serialized persistent-nontransactional-dirty in StateTransitionsReturnedObjects

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JDO TCK challenge fixes
    • Component/s: tck
    • Labels:
      None

      Description

      Eric Bengtson's test challenge:

      The test asserts transaction of pc-non trans dirty to transient on
      serialization. I understand it should have been pc-non trans dirty to detached
      clean (matching pc-dirty and pc-non trans states behavior)

      1)
      test(org.apache.jdo.tck.lifecycle.StateTransitionsReturnedObjects)junit.framework.AssertionFailedError:
      Assertions A5.9-1 through A5.5.8 (serialization, detachment, attachment) failed:
      StateTransitionsReturnedObjects: no transaction; current state
      persistent-nontransactional-dirty
      serialize outside tx returned instance in invalid state detached-clean; expected
      state transient

      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1102)
      at
      org.apache.jdo.tck.lifecycle.StateTransitionsReturnedObjects.test(StateTransitionsReturnedObjects.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:253)
      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:107)
      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:147)
      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:122)

        Activity

        Hide
        Craig L Russell added a comment -

        The serialization behavior is not detailed enough in the released JDO 2.0 specification. For 2.1, the expert group will update the required behavior, which might be to transition to detached-dirty.

        Interim, the test should be patched to not run the state transition for this condition.

        Show
        Craig L Russell added a comment - The serialization behavior is not detailed enough in the released JDO 2.0 specification. For 2.1, the expert group will update the required behavior, which might be to transition to detached-dirty. Interim, the test should be patched to not run the state transition for this condition.
        Hide
        Michelle Caisse added a comment -

        Patched the 2.0.1 branch. This state transition is now UNSPECIFIED. Revision: 526319

        Show
        Michelle Caisse added a comment - Patched the 2.0.1 branch. This state transition is now UNSPECIFIED. Revision: 526319

          People

          • Assignee:
            Michelle Caisse
            Reporter:
            Michelle Caisse
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development