|
|
@ -24,6 +24,7 @@ import jode.decompiler.Declarable; |
|
|
|
import jode.expr.Expression; |
|
|
|
import jode.expr.Expression; |
|
|
|
import jode.expr.LocalLoadOperator; |
|
|
|
import jode.expr.LocalLoadOperator; |
|
|
|
import jode.expr.LocalStoreOperator; |
|
|
|
import jode.expr.LocalStoreOperator; |
|
|
|
|
|
|
|
import jode.expr.NopOperator; |
|
|
|
import jode.expr.StoreInstruction; |
|
|
|
import jode.expr.StoreInstruction; |
|
|
|
import jode.util.SimpleSet; |
|
|
|
import jode.util.SimpleSet; |
|
|
|
|
|
|
|
|
|
|
@ -218,17 +219,19 @@ public class CatchBlock extends StructuredBlock { |
|
|
|
} else if (firstInstr instanceof InstructionBlock) { |
|
|
|
} else if (firstInstr instanceof InstructionBlock) { |
|
|
|
Expression instr = |
|
|
|
Expression instr = |
|
|
|
((InstructionBlock) firstInstr).getInstruction(); |
|
|
|
((InstructionBlock) firstInstr).getInstruction(); |
|
|
|
if (instr instanceof StoreInstruction |
|
|
|
if (instr instanceof StoreInstruction) { |
|
|
|
&& (((StoreInstruction)instr).getLValue() |
|
|
|
StoreInstruction store = (StoreInstruction) instr; |
|
|
|
instanceof LocalStoreOperator)) { |
|
|
|
if (store.getOperatorIndex() == store.OPASSIGN_OP |
|
|
|
/* The exception is stored in a local variable */ |
|
|
|
&& store.getSubExpressions()[1] instanceof NopOperator |
|
|
|
exceptionLocal = ((LocalStoreOperator) |
|
|
|
&& store.getLValue() instanceof LocalStoreOperator) { |
|
|
|
((StoreInstruction)instr).getLValue()) |
|
|
|
/* The exception is stored in a local variable */ |
|
|
|
.getLocalInfo(); |
|
|
|
exceptionLocal = ((LocalStoreOperator) store.getLValue()) |
|
|
|
exceptionLocal.setType(exceptionType); |
|
|
|
.getLocalInfo(); |
|
|
|
firstInstr.removeBlock(); |
|
|
|
exceptionLocal.setType(exceptionType); |
|
|
|
return true; |
|
|
|
firstInstr.removeBlock(); |
|
|
|
} |
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|