javassist
javassist copied to clipboard
Java bytecode engineering toolkit
Hi. I'm George Petkakis from Auth univercity ,department of Informatics. I've performed a simple and fast analysis for the project using CodeMr and Inteldj Idea Metrics tools. PDF presentation: [javassist_analysis.pdf](https://github.com/jboss-javassist/javassist/files/4841852/javassist_analysis.pdf)...
I use Javassist 3.27.0-GA in my private project in order to implement some kind of mock framework. I insert code like this into constructors in order to "mock" them, i.e....
We previously used `NewExpr.replace` to change the construction of class A into construction of class B (with the same constructor parameters). If the bytecode sequence between the `new` opcode and...
Given a method that possibly overrides from a superclass or implements an interface, I need to find the topmost class/interface where the method exists. What is the best way to...
I've noticed `javassist` should be in the `classpath` of the instrumented application when `$sig` is used in the injected bytecode. Is it possible to remove this runtime dependency? or at...
Here is a stack trace: ```java java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:460) at javassist.ClassPool.cacheCtClass(ClassPool.java:228) at javassist.CtClass.detach(CtClass.java:1419) ``` This seems to be the conditions: * The detached class is not actually cached, the call...
how to compile javassist 3.24 by jdk8 ?
@chibash, just saw some changes happened 3 years ago: https://github.com/jboss-javassist/javassist/commit/778c463e5aa1795591e56916c6c1c3205317fc3e https://github.com/jboss-javassist/javassist/commit/e41e0790c0cb073e9e2e30071afecfcdc4621d42 There are several changes regarding controlling classloader. Not clear why there is different behavior. Currently, we can not change...
I use below code,but how can i get local var line number? LineNumberAttribute lineNumberAttribute = (LineNumberAttribute) ca.getAttribute( LineNumberAttribute.tag);
Hi, we would like to know if there is any way to "inject" a class definition to another classloader. Our use case is this: We want to create a class...