Closed bjkeller closed 7 years ago
This does not happen with the latest Toradocu version that produces an empty translation for the comment for which Toradocu was generating a wrong translation. Some time ago, we added checks that try to prevent this situations.
I close this issue.
Running Randoop on
org.apache.commons.collections4.ClosureUtils
with--export-conditions
(onrandoop
branch) gives the following condition-methodwhere
predicate
has typeorg.apache.commons.collections4.Predicate
and cannot be converted toboolean
. So, translation of "if predicate is true" topredicate == true
is incorrect. Similarly, for statement "if predicate is false" for thefalseClosure
parameter.If you look at the code these param-tags are not preconditions anyway, they describe the behavior of the
Closure
object that the method creates.