commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaasjan Brand <br...@topicus.nl>
Subject [beanutils] methodutils bug + patch
Date Wed, 03 Apr 2002 12:06:58 GMT
Hi there,

I discovered a bug in the class MethodUtils: when comparing method 
parameters to find a matching method the search is interrupted when 
method parameters don't match, but the non-matching method is still 
returned. When the first method returned by Java is appropriate this bug 
will go unnoticed; it was quite hard to track down...

I fixed it by breaking out of the compare loop and continue with the 
next method candidate as shown in the enclosed patch.

greets,
Klaasjan Brand

Mime
View raw message