Log in to follow, share, and participate in this community.
Thread Decompile
DecompileIs Javassist's API able to support decompile a class file to the corresponding source file? For example, ClassPool pool = ClassPool.getDefault(); pool.insertClassPath(classpath); CtClass cc = pool.ge...
is it possible to remove member classHi, i try to remove an inner static class from a class. but it looks like javaassist don't give API for that. Did i miss something?. Is it possible at all?
Thread javassist proxy : memory leak issue any idea (adding stacktrace)
javassist proxy : memory leak issue any idea (adding stacktrace)Hi , I am using javaassist proxyfactory to create proxy of a Jcomponent. things works perfectly but after close and reopen of dialog holding this proxy component several time... I get out of memory exceptio...
Method returning Class<?>Hello all, I just started using Javassist, and so far I find it very flexible and easy to use. However, I'm trying to add a method to a class, which return type should be "Class<?>". I'm getting ...
Generating a main methodHi there, folks. Sorry if this is a dumb question, but I couldn't find any good explanation so far. I have the following code, a plain and simple HelloWorld: ClassPool pool = ClassPool.getDefault();
CtC...
Thread How can get the initial member field value?
How can get the initial member field value?Hello, dear all I want to get the initial member field value via javassist, can that be achived? For example, sample class as below. I just want exactly get the 2 for x, 3 for y, and "world" for str, a...
Thread Find the way to get name of classes as and when they execute
Find the way to get name of classes as and when they executeI have created my loader class that print the class name when they are loaded at run time. but I want when they execute then only their name get printed and in the order of execution. And all these classes are...
JVM advice neededI am using javassist on an open source project that aims to bring run time class reloading to java, without discarding the classloader. It aims to expand on the hotswap capabilities of the JVM, by recompiling ...
Javassist nightly buildsAs Andrew has now updated the POM to work well for snapshots, I have created and set running a Hudson job: Runs daily, if there have been SVN changes Can be managed - http://hudson.qa.jboss.com/hudson/view/Al...
Thread Error adding new field like ArrayList<String>
Error adding new field like ArrayList<String>Hi everyone, I am trying to add a complex field like ArrayList<String>, but for the moment I didn't have any luck. String declaration = "private java.util.List<String> x = new java.ut...
Create a proxy of proxyI'm using the following code to create a proxy: public Object createProxiedInstance(Object originalInstance) throws Exception { Class<?> originalClass = instance.getClass(); ...
Thread Saving proxy classes and using them in Android
Saving proxy classes and using them in AndroidI am new to the wonderful world of Javassist, and I now have a question: I have used the very easy and convenient ProxyFactory in the usual way: final ProxyFactory proxyFactory = new ProxyFactory(); ...
HotSwap fails on IBM jre/jdk?!Hello there, I am investigating if javassist hotswap might be used for some debugging work in my project. As IBMer I have to avoid the SUN stuff; so its IBM jre/jdk only for me. It took me a while to ...
Thread javassist.bytecode.BadBytecode: unset variable. Please Help Me!
javassist.bytecode.BadBytecode: unset variable. Please Help Me!Hello All,
I am trying to use Javassist with my tomcat based web application.
I am getting exceptions when I try to instrument servlets generated from JSPs. Stack Trace attached below.
Instrumentation that I a...
Remove an interface from a ClassHi, Is it possible to remove an interface from a class? e.g. public class SomeClass implements SomeInterface, AnotherInterface { } Thanks in advance! Kevin.
Thread Javassist and compile-time code instrumentation
Javassist and compile-time code instrumentationIs it possible to use javassist to insrument code at compile-time with jdk6 annotation processing? My need is that I have to use a thread synchronisation api in my business code, and to do that I would like to use an...
problem adding annotations at runtimeHi One & All I have a classfile called HelloWorldService with @WebServiceClient annotation. I want to use this classfile and need to be add one more annotation @HandlerChain using javaassist. ...
Thread How to get the values of annotation's members?
How to get the values of annotation's members?Hi people, I'm trying to learn to use javassist and I need some help with my study. I want first to get all annotations used from one class and its hierarchy (recursively until Object class) . Second, ...