Browse Source

fixed JIRA-227

tags/rel_3_19_0_ga
chibash 9 years ago
parent
commit
7497ae88e9

+ 1
- 1
Readme.html View File



<p>-version 3.19 <p>-version 3.19
<ul> <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> </ul>
</p> </p>



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

*/ */
public int byteAt(int index) { return bytecode[index] & 0xff; } 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. * Writes an 8bit value at the given index.
*/ */

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

case IF_ICMPNE: case IF_ICMPNE:
return opstring + " " + (iter.s16bitAt(pos + 1) + pos); return opstring + " " + (iter.s16bitAt(pos + 1) + pos);
case IINC: case IINC:
return opstring + " " + iter.byteAt(pos + 1);
return opstring + " " + iter.byteAt(pos + 1) + ", " + iter.signedByteAt(pos + 2);
case GOTO: case GOTO:
case JSR: case JSR:
return opstring + " " + (iter.s16bitAt(pos + 1) + pos); return opstring + " " + (iter.s16bitAt(pos + 1) + pos);

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

*/ */
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
if (args.length != 1) { 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; return;
} }

Loading…
Cancel
Save