DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12728>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12728

Cache Bug in the PropertyUtils.java line 889

           Summary: Cache Bug in the PropertyUtils.java line 889
           Product: Commons
           Version: 1.4 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Bean Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to