<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="javassist/util/HotSwapper.java" kind="src" path="src/main"/>
+ <classpathentry kind="src" path="src/test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
<h2>Changes</h2>
+<p>-version 3.7.2
+<ul>
+ <li>JASSIST-51 was fixed.
+</ul>
+
<p>-version 3.7.1 on March 10, 2008
<ul>
<li>a bug of javassist.util.proxy has been fixed.
public void sameFrame(int pos, int offsetDelta) throws BadBytecode {}
private int sameLocals(int pos, int type) throws BadBytecode {
+ int top = pos;
int offset;
if (type < 128)
offset = type - 64;
pos += 2;
}
- sameLocals(pos, offset, tag, data);
+ sameLocals(top, offset, tag, data);
return pos + 2;
}
package test;
-import javassist.bytecode.*;
+import javassist.*;
public class Test {
- public static void main(String[] args) {
- String[] names = Mnemonic.OPCODE;
- for (int i = 0; i < names.length; i++)
- if (names[i] == null)
- System.out.println(" case " + i + " :");
- else
- System.out.println(" case Opcode." + names[i].toUpperCase() + " :");
+ public static void main(String[] args) throws Exception {
+ CtClass ctClass = ClassPool.getDefault().get("JavassistTarget");
+ ctClass.getMethod("method", "(Ljava/lang/String;)V").insertAfter("");
}
}