@@ -283,7 +283,7 @@ see javassist.Dump. | |||
<p>-version 3.19 | |||
<ul> | |||
<li>JIRA JASSIST-158, 205, 206, 207, 211, 212, 216, 223, 224. | |||
<li>JIRA JASSIST-158, 205, 206, 207, 211, 212, 216, 220, 223, 224, 227. | |||
</ul> | |||
</p> | |||
@@ -126,6 +126,11 @@ public class CodeIterator implements Opcode { | |||
*/ | |||
public int byteAt(int index) { return bytecode[index] & 0xff; } | |||
/** | |||
* Returns the signed 8bit value at the given index. | |||
*/ | |||
public int signedByteAt(int index) { return bytecode[index]; } | |||
/** | |||
* Writes an 8bit value at the given index. | |||
*/ |
@@ -116,7 +116,7 @@ public class InstructionPrinter implements Opcode { | |||
case IF_ICMPNE: | |||
return opstring + " " + (iter.s16bitAt(pos + 1) + pos); | |||
case IINC: | |||
return opstring + " " + iter.byteAt(pos + 1); | |||
return opstring + " " + iter.byteAt(pos + 1) + ", " + iter.signedByteAt(pos + 2); | |||
case GOTO: | |||
case JSR: | |||
return opstring + " " + (iter.s16bitAt(pos + 1) + pos); |
@@ -36,7 +36,7 @@ public class framedump { | |||
*/ | |||
public static void main(String[] args) throws Exception { | |||
if (args.length != 1) { | |||
System.err.println("Usage: java javassist.tools.framedump <class file name>"); | |||
System.err.println("Usage: java javassist.tools.framedump <fully-qualified class name>"); | |||
return; | |||
} | |||