Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-956 OpenJPA 2.0 iteration 5 primary task
  3. OPENJPA-990

setHint should return IllegalArgumentException for invalid query/lock timeout values

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.0-M2
    • Component/s: query
    • Labels:
      None

      Description

      JPA2 public draft spec section 3.6.1 Query Interface notes that Query.setHint() should throw a IllegalArgumentException if a supplied hint value is not valid for a given implementation.
      For lock/query timeout, any user supplied value < -1 is invalid and should throw an exception, which is not occurring.

        Attachments

        1. OPENJPA-990.patch
          11 kB
          Donald Woods
        2. OPENJPA-990_20090326.patch
          13 kB
          Donald Woods

          Activity

            People

            • Assignee:
              drwoods Donald Woods
              Reporter:
              drwoods Donald Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: