Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6386782

Spec on CachedRowSet.createShared is not clear enough

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • generic
    • generic

      The spec on CachedRowSet.createShared should clearly say that shared rowset instance is ready for use immediately after method return.

      One of the JSR114 implementors requires to run method close() after method
      createShared() in order to 'detaching' the original rowset from the shared.
      Sun's rowset implementation does not require such behavior.
      The following TCK tests fail because of this issue:
      api/javax_sql/rowset/impl/CachedRowSet/index.html#CachedRowSet[createSharedTest]
      api/javax_sql/rowset/impl/FilteredRowSet/index.html#FilteredRowSet[createSharedTest]
      api/javax_sql/rowset/impl/JoinRowSet/index.html#JoinRowSet[createSharedTest]
      api/javax_sql/rowset/impl/WebRowSet/index.html#WebRowSetcloseTest[createSharedTest]

            lancea Lance Andersen
            agavrilosunw Alexey Gavrilov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: