Issue 10, Missing default code block when missing break

This commit is contained in:
Jindra Petk
2012-12-15 20:06:23 +01:00
parent 82b86f473e
commit 9d9c6aa253

View File

@@ -1313,7 +1313,7 @@ public HashMap<Integer,String> getLocalRegNamesFromDebug(ABC abc){
if (evalTo == -1)
subend--;
List commands = toSource(isStatic, classIndex, localRegs, new Stack<TreeItem>(), scopeStack, abc, constants, method_info, body, substart, subend).output;
if ((evalTo == -1) && (casePos < code.get(switchPos).operands.length - 2)) {
if ((evalTo == -1) && (casePos + 1< code.get(switchPos).operands.length - 2)) {
if (commands.size() == 1) {
commands.remove(0);
}