Javassist (JAVA programming ASSISTant) makes Java bytecode manipulation
simple. It is a class library for editing bytecodes in Java.
</description>
- <version>3.21.0-GA</version>
- <version>3.21.0</version>
++ <version>3.22.0-CR1</version>
<name>Javassist</name>
<url>http://www.javassist.org/</url>
/**
* The version number of this release.
*/
- public static final String version = "3.21.0-GA";
- public static final String version = "3.21.0-java9beta2";
++ public static final String version = "3.22.0-CR1";
/**
* Prints the version number and the copyright notice.
assertEquals(1, invoke(obj, "run"));
}
+ public void testLoaderClassPath() throws Exception {
+ ClassPool cp = new ClassPool();
+ cp.appendClassPath(new LoaderClassPath(new Loader()));
+ assertNotNull(cp.get(Object.class.getName()));
+ assertNotNull(cp.get(this.getClass().getName()));
++ }
+
public void testAddDefaultMethod() throws Exception {
CtClass cc = sloader.makeInterface("test5.AddDefaultMethod");
cc.addMethod(CtNewMethod.make("static int foo() { return 1; }", cc));