use getHint

fix for do/while loops and continue


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@376 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 2e22e90384
commit 8ea042a516
  1. 7
      jode/jode/flow/LoopBlock.java

@ -257,7 +257,7 @@ public class LoopBlock extends StructuredBlock implements BreakableBlock {
if (isDeclaration) if (isDeclaration)
writer.print(((LocalStoreOperator) writer.print(((LocalStoreOperator)
init.getInstruction().getOperator()) init.getInstruction().getOperator())
.getLocalInfo().getType().toString() .getLocalInfo().getType().getHint()
+ " "); + " ");
writer.print(init.getInstruction().simplify().toString()); writer.print(init.getInstruction().simplify().toString());
} else } else
@ -361,7 +361,10 @@ public class LoopBlock extends StructuredBlock implements BreakableBlock {
* @return false if the stack is inconsistent. * @return false if the stack is inconsistent.
*/ */
public void mergeContinueStack(VariableStack stack) { public void mergeContinueStack(VariableStack stack) {
continueStack.merge(stack); if (continueStack == null)
continueStack = stack;
else
continueStack.merge(stack);
} }
/** /**

Loading…
Cancel
Save