diff --git a/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGen.java b/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGen.java index 3b0cb4b74..f89f7bbc7 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGen.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/BytecodeGen.java @@ -181,9 +181,11 @@ public class BytecodeGen implements ASTVisitor { // resultSet = listOfResultSets.get(0); boolean isConsWithNoParamsVisited = false; boolean isVisited = false; - for (ResultSet rs : listOfResultSets) { + List listOfResultSetsList = new ArrayList<>(listOfResultSets); + for (int i = 0; i < listOfResultSetsList.size(); i++) { + //for (ResultSet rs : listOfResultSets) { superClass = classOrInterface.getSuperClass().acceptTV(new TypeToDescriptor()); - resultSet = rs; + resultSet = listOfResultSetsList.get(i); tphExtractor.setResultSet(resultSet); // Nur einmal ausführen!!