albertogoffi / toradocu

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

Recognize Types and Interfaces in predicates #49

Open ariannab opened 7 years ago

ariannab commented 7 years ago

When a Type or Interface is involved in a predicate, Toradocu doesn't always translate it correctly.

For example, in org.apache.commons.collections4.collection.UnmodifiableBoundedCollection, the constructor unmodifiableBoundedCollection(Collection<? extends E> coll) reports the following comment in the Javadoc:

In this case, Toradocu produces an empty condition, because the predicate is BoundedCollection doesn't mean anything to it.

A possible solution could be exploiting the @codetag in order to find if the tagged element is a Type, or an Interface, etc. Obviously we cannot be sure that such elements will always be tagged with @code: maybe a more general solution could work better.