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

CachedRowSetImpl.populate does not handle map properly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 8
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b45
    • CPU:
      generic
    • OS:
      generic

      Description

      CachedRowSetImpl.populate does not correctly validate whether a map object is specified

      The check

                      if (map == null ) {
                          obj = data.getObject(i);
                      } else {
                          obj = data.getObject(i, map);
                      }

      Should be

                      if (map == null || map.size() == 0) {
                          obj = data.getObject(i);
                      } else {
                          obj = data.getObject(i, map);
                      }

      if a webrowset is read in and has an empty map tag, you would have a non-null value for map and then try to execute

      obj = data.getObject(i, map);

      Which is not supported on all databases such as derby

        Attachments

          Activity

            People

            • Assignee:
              lancea Lance Andersen
              Reporter:
              lancea Lance Andersen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: