cc.addConstructor(CtNewConstructor.make("public StackMapTestJsrTest() {}", cc));
cc.addMethod(CtMethod.make("public static void main(String[] args) {"
+ "new javassist.bytecode.StackMapTestJsrTest().test();"
+ "}",
cc));
cc.writeFile();
Object t1 = make(cc.getName());
assertEquals(3, invoke(t1, "test"));
}
public void tstCtClassType() throws Exception {