wwu-pi / muggl

A Symbolic ATCG
GNU General Public License v3.0
2 stars 1 forks source link

Only static methods seem to work #1

Closed RafaelCaballero closed 10 years ago

RafaelCaballero commented 10 years ago

It seems that the tool only generates test-cases properly if the methods are static.

RafaelCaballero commented 10 years ago

In Class de.wwu.muggl.symbolic.testCases.SolutionProcess.java chenged for (int a = startAt; a < parameterTypes.length; a++) { by for (int a = startAt; a < parameters.length; a++) {.

The problem is that parameterTypes has length equal to the arity, regardless whether the method is static or not. In our previous example, with arity 2, parameterTypes.length = 2, therefore the loop only iterates ones (startAt=2 because it is a non-static method).

The solution was use instead the parameters length: