illegal state exception deob, ff doesnt fully like it yet though
This commit is contained in:
@@ -98,9 +98,7 @@ public class Instructions
|
||||
|
||||
public void buildBlocks()
|
||||
{
|
||||
for (Instruction i : instructions)
|
||||
i.block = null;
|
||||
blocks.clear();
|
||||
clearBlockGraph();
|
||||
|
||||
Block current = null;
|
||||
for (Instruction i : instructions)
|
||||
@@ -122,6 +120,13 @@ public class Instructions
|
||||
}
|
||||
}
|
||||
|
||||
public void clearBlockGraph()
|
||||
{
|
||||
for (Instruction i : instructions)
|
||||
i.block = null;
|
||||
blocks.clear();
|
||||
}
|
||||
|
||||
public void write(DataOutputStream out) throws IOException
|
||||
{
|
||||
// generate pool indexes
|
||||
|
||||
@@ -24,6 +24,13 @@ public class Goto extends Instruction implements JumpingInstruction
|
||||
length += 2;
|
||||
}
|
||||
|
||||
public Goto(Instructions instructions, Instruction to)
|
||||
{
|
||||
super(instructions, InstructionType.GOTO, 0);
|
||||
this.to = to;
|
||||
length += 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resolve()
|
||||
{
|
||||
|
||||
@@ -67,4 +67,9 @@ public class If extends Instruction implements JumpingInstruction
|
||||
if (to == oldi)
|
||||
to = newi;
|
||||
}
|
||||
|
||||
public Instruction getTo()
|
||||
{
|
||||
return to;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,4 +68,9 @@ public class If0 extends Instruction implements JumpingInstruction
|
||||
if (to == oldi)
|
||||
to = newi;
|
||||
}
|
||||
|
||||
public Instruction getTo()
|
||||
{
|
||||
return to;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,4 +45,9 @@ public class New extends Instruction
|
||||
|
||||
frame.addInstructionContext(ins);
|
||||
}
|
||||
|
||||
public Class getNewClass()
|
||||
{
|
||||
return clazz;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user