Browse Source

fixed JIRA-227

tags/rel_3_19_0_ga
chibash 9 years ago
parent
commit
7497ae88e9

+ 1
- 1
Readme.html View File

@@ -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>


+ 5
- 0
src/main/javassist/bytecode/CodeIterator.java View File

@@ -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.
*/

+ 1
- 1
src/main/javassist/bytecode/InstructionPrinter.java View File

@@ -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);

+ 1
- 1
src/main/javassist/tools/framedump.java View File

@@ -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;
}

Loading…
Cancel
Save