Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-136

CaseInsensitiveHashMap cannot be accessed by subclasses of BasicRowProcessor; add org.apache.commons.dbutils.BasicRowProcessor.createCaseInsensitiveHashMap(int)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7
    • 1.8.0

    Description

      This visibility restriction on CaseInsensitiveHashMap is too strict for no good reason:

      private static class CaseInsensitiveHashMap extends LinkedHashMap<String, Object>

      This should be specified as:

      protected static class CaseInsensitiveHashMap extends LinkedHashMap<String, Object>

      Otherwise it's painful to override or re-implement methods such as public Map<String, Object> toMap(ResultSet rs) throws SQLException.

      Patch available at https://github.com/megahall/dbutils/tree/megahall/DBUTILS-136 .

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            mhall Matthew Hall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: