njit-jerse / specimin

SPECIfication MINimizer. A different kind of slicer for Java.
MIT License
0 stars 5 forks source link

For-each expression must be iterable #286

Closed kelloggm closed 1 month ago

kelloggm commented 1 month ago

While debugging #279, I saw the following when running javac on the output of Specimin:

randoop/output/PrimitiveAndWrappedTypeVarNameCollector.java:15: error: for-each not applicable to expression type
        for (VariableDeclarator vd : n.getVariables()) {
                                                   ^
  required: array or java.lang.Iterable
  found:    GetVariablesReturnType
1 error

It should be straightforward to write a test case that elicits this problem.