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

CachedRowSetImpl.populate does not handle map properly

XMLWordPrintable

    • b45
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: