• Decompile

    Is 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...
    Profile Photo
    last modified by mksong
  • is it possible to remove member class

    Hi, 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?
    Profile Photo
    created by yinons
  • 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...
    Profile Photo
    created by anandpritam
  • 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 ...
    Profile Photo
    created by rfer
  • Generating a main method

    Hi 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...
    Profile Photo
    created by nagure
  • 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...
    Profile Photo
    last modified by xeoshow
  • Export

    Anyone know where I can find the ECCN code for J2EE? Are there any erport regulations? Who "owns" J2EE?
    Profile Photo
    last modified by spunk
  • Find the way to get name of classes as and when they execute

    I 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...
    Profile Photo
    created by vidya12345
  • JVM advice needed

    I 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 ...
    Profile Photo
    created by swd847
  • Javassist nightly builds

    As 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...
    Profile Photo
    created by pmuir
  • 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...
    Profile Photo
    created by i02fesea
  • Create a proxy of proxy

    I'm using the following code to create a proxy:     public Object createProxiedInstance(Object originalInstance) throws Exception {     Class<?> originalClass = instance.getClass(); ...
    Profile Photo
    last modified by glammy
  • Saving proxy classes and using them in Android

    I 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(); &#...
    Profile Photo
    last modified by ericjava
  • 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 ...
    Profile Photo
    created by karma
  • 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...
    Profile Photo
    last modified by megalodon
  • Remove an interface from a Class

    Hi,   Is it possible to remove an interface from a class?   e.g.   public class SomeClass implements SomeInterface, AnotherInterface { }   Thanks in advance! Kevin.
    Profile Photo
    last modified by kevinkilroy
  • Javassist and compile-time code instrumentation

    Is 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...
    Profile Photo
    last modified by ngounou
  • problem adding annotations at runtime

    Hi 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.   ...
    Profile Photo
    last modified by inalasuresh
  • 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, ...
    Profile Photo
    created by cvgaviao
  • determining if code passed to insertAfter() is executed after an exception handler or before normal return

    Hello,   Quick question. As far as my understanding goes, the source code provided to the CtMethod.insertAfter() is inserted 'at the end of the method' i.e., before every 'return' statement and after every excep...
    Profile Photo
    last modified by megalodon