Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-165

Cache Bug in the PropertyUtils.java line 889

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 12728

    Description

      i looked through the code of the BeanUtils 1.4.1 and found a bug in the
      file "PropertyUtils.java" line 889. These statement is may be not correct. For
      my understanding it should be :

      if (result != null) {
      // mappedDescriptorsCache.put(name, result); // the old code
      // begin my code
      if (mappedDescriptors == null)

      { mappedDescriptors = FastHashMap(); mappedDescriptors.setFast(true); mappedDescriptorsCache.put(bean,mappedDescriptors); }

      mappedDescriptors.put(name,result);
      // end my code
      }

      i looked also in the nightly build, but there was the same code.

      regards

      alexander

      Attachments

        Activity

          People

            Unassigned Unassigned
            a.merk@gmx.de Alexander Merk
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: