Fix invokeinterface, add invokedynamic

This commit is contained in:
Adam
2014-12-01 12:00:46 -05:00
parent b51ed54426
commit 44f018727f
3 changed files with 10 additions and 65 deletions

View File

@@ -10,6 +10,7 @@ import java.io.IOException;
public class InvokeInterface extends Instruction
{
private int index;
private int count;
public InvokeInterface(Instructions instructions, InstructionType type, int pc) throws IOException
{
@@ -17,7 +18,9 @@ public class InvokeInterface extends Instruction
DataInputStream is = instructions.getCode().getAttributes().getStream();
index = is.readUnsignedShort();
length += 2;
count = is.readUnsignedByte();
is.skip(1);
length += 4;
}
}