JDO
  1. JDO
  2. JDO-419

StateTransitions incorrectly asserts that field access in a deleted instance will throw an exception

    Details

      Description

      The series of states marked with "read field with active datastore transaction" (element 14 of the "transitions" field of org.apache.jdo.tck.lifecycle.StateTransitions) asserts that accessing a field of a deleted instance will throw an exception. However, this is not mandated by the spec, only suggested that it might happen. Section 5.5.6 reads: "Any other access to persistent fields is not supported and might throw a JDOUserException".

      The only easy fix is to just remove the "read field with active datastore transaction" test specifications.

      1. JDO-419.patch
        2 kB
        Craig L Russell
      2. JDO-419.patch
        0.7 kB
        Marc Prud'hommeaux

        Activity

        Marc Prud'hommeaux created issue -
        Marc Prud'hommeaux made changes -
        Field Original Value New Value
        Attachment JDO-419.patch [ 12340699 ]
        Craig L Russell made changes -
        Assignee Craig Russell [ clr ]
        Craig L Russell made changes -
        Attachment JDO-419.patch [ 12342226 ]
        Craig L Russell made changes -
        Fix Version/s JDO 2 maintenance release 1 [ 12310923 ]
        Fix Version/s JDO 2.0 TCK challenge fixes [ 12312093 ]
        Craig L Russell made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Andy Jefferson made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Craig L Russell
            Reporter:
            Marc Prud'hommeaux
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development