albertogoffi / toradocu

Toradocu - automated generation of test oracles from Javadoc documentation
Other
42 stars 21 forks source link

Non-compilable condition due to wrong guard #219

Closed ariannab closed 6 years ago

ariannab commented 6 years ago

Running Toradocu on class org.apache.commons.collections4.functors.AllPredicate produces the following condition:

    "returnTag": {
      "comment": "true if all decorated predicates return true.",
      "kind": "RETURN",
      "condition": "target.getPredicates()==true ? result == true : result == false"
    },

The guard attempts a non-compilable comparison between the result of a call to method target.getPredicates() and the value true.

ariannab commented 6 years ago

The same problem is encountered on classes org.apache.commons.collections4.functors.AndPredicate and org.apache.commons.collections4.functors.NonePredicate

ariannab commented 6 years ago

Solved by #226.