commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12728] New: - Cache Bug in the PropertyUtils.java line 889
Date Tue, 17 Sep 2002 10:11:55 GMT
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: commons-dev@jakarta.apache.org
        ReportedBy: a.merk@gmx.de


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:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message