Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-336

JPOX metadata query defaults unmodifiable to true; the default should be false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 2 rc1
    • JDO 2 final (2.0)
    • tck
    • None
    • JPOX

    Description

      The default for the unmodifiable attribute in queries defined in metadata is false. It was true during early development of the specification.

      This causes:
      [java] 1) testPositive(org.apache.jdo.tck.query.api.ChangeQuery)javax.jdo.JDOUserException: This query is in an unmodifiable state. It's structure cannot be changed
      [java] at org.jpox.store.query.Query.assertIsUnmodifiable(Query.java:703)
      [java] at org.jpox.store.query.Query.setResult(Query.java:600)
      [java] at org.apache.jdo.tck.query.api.ChangeQuery.testPositive(ChangeQuery.java:64)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:216)
      [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120)
      [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)

      Attachments

        1. Queryunmodifiable.patch
          1.0 kB
          Craig L Russell
        2. unmodifiable.patch
          0.6 kB
          Craig L Russell

        Activity

          People

            ebengtso Erik Bengtson
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: