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

CachedRowSetImpl.populate does not handle map properly

    XMLWordPrintable

Details

    • b45
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: