• On a faster java.lang.reflect.Method using Javassist

    I've been playing with generating our own reflection objects rather than using the JDK classes. My Javassist reflection methods are significantly faster int iterations = 10000000; public void testStressJavassist...
    Profile Photo
    last modified by adrian.brock
  • Changing method signatures

      On Tue, 2006-02-21 at 20:16, Shigeru Chiba wrote: Hi Adrian, > > These methods you added might be dangerous since constant pool > entries can be shared among different entities. So changing > Metho...
    Profile Photo
    last modified by adrian.brock
  • Fix to EnclosingMethodAttribute

    I was seeing an issue where an EnclosingAttribute didn't have a method index (it was zero). This caused the compact/clone to fail. Ths was code generated with JDK5 and it looked it was recording the enclosing class r...
    Profile Photo
    created by adrian.brock
  • Challenging problem.

    Hi, in anyway I wanted to know given the following table structure:- How do i deal with the associations of the following table structure(postgres) in mapping files & their POJOs & DAOs:- CREATE TABLE membe...
    Profile Photo
    last modified by raj_raj
  • Local variables access expressions

    Hi, I'm currently implementing an expression that reifies access to local variables, very similar to the expression that reifies accesses to fields. In the current version I can properly reify and replace write acces...
    Profile Photo
    last modified by gpothier
  • HotSwapper connection problem

    Hi, I am using HotSwapper to reload a class i changed at runtime. I am not able to make it work. I am using Jboss 4.0.3RC2, and Javassist 3.1RC2. When I create HotSwapper object with HotSwapper hs = new HotSwapper(8...
    Profile Photo
    created by sharman
  • Difficulties running javassist from an ant-task

    Hi, I am using javassist from within an ant task. I had quite a bit of difficulty. I posted this as a bug to ant, but they are having difficulty grocking the issue, as am I. http://issues.apache.org/bugzilla/show_...
    Profile Photo
    created by yonasj
  • Strange error generating delegate method in enum

    I'm getting a very weird error when trying to generate a delegate method with CtNewMethod.delegator for the "equals" method of an enumeration class: java.lang.VerifyError: class reflex.test.misc.codemanipulation.Durat...
    Profile Photo
    last modified by gpothier
  • CannotCompileException / root cause

    The CannotCompileException class has a "cause" field that permit to store another exception that was the cause of the exception. The printStackTrace method are overridden so that the cause exception's stack trace is a...
    Profile Photo
    last modified by gpothier
  • Can one change the major and minor version on a new class?

    I'm generating some classes with javassist that have generics and enums in them from Java 1.5 and I'd like the class files that javassist generates to state that they're for 1.5 and not for 1.1. Is there a way to chan...
    Profile Photo
    last modified by jpschewe
  • Eclipse IDE

    Hi I have just installed the eclipse IDE following the installation instructions explicitly Help/software updates/find and install /jboss I found the IDE insalled it and selected the option to restart eclipse the ins...
    Profile Photo
    last modified by donncha.finlay
  • javassist.CannotCompileException: by java.lang.LinkageError:

    hi, I am trying to alter a method body CtClass clazz = ClassPool.getDefault().get("test.test2.InvokeeBuilder"); CtMethod method = clazz.getDeclaredMethod("delegation"); method.setBody("test.test2.Invokee.display...
    Profile Photo
    last modified by solmaz1
  • lexer won't tokenize identifiers with non us-ascii character

    I'm using jboss aop and am trying to aspectize a method with a german umlaut in its name (that was not my idea). The Parser throws a CompileError("; is missing") in line 593 (version 3.0). Regards, Holger
    Profile Photo
    last modified by hengels
  • MultiThreaded Programming

    I have encountered a problem while implementing the following requirement, My requirement:- I have two threads Thread_1 and Thread_2. Thread_2 performs TASK which can?t be implemented or performed in loop as it is no...
    Profile Photo
    created by javafolks_ssee
  • BUG in CtClassType->doCompaction

    Hi, I found another bug in javaassist. The workaround is to comment out the call to doCompaction in CtClassType->getClassFile2 The problem is, that the method doCompaction calls CtClassType->isModified in orde...
    Profile Photo
    created by hengels
  • root classpool and child class pool question

    why if i make a root class pool and a child classpool ,when i reference a ctclass from child class pool , i do not see all method from that? i make a root class pool: ClassPool RootClassPool; RootClassPool = new Cl...
    Profile Photo
    created by icecrash
  • Intercept method an field call part 2

    if i ha a big application = 2 or plus class ,and i want to intercept calls, i can make reflective all classes of my application , i tried , but i 've recived an error at runtime: ClassPool pool = new ClassPool(); ...
    Profile Photo
    created by icecrash
  • how i can intercept methods call?

    I have a compiled classes ,i want to run the class and intercept all the metho call. i try to use the metalevel and metaobject,but, i only able to intercept new instance of a loaded class from file, how i can interce...
    Profile Photo
    created by icecrash
  • how i can use metaobject for intercept method invocation?

    i have a test class named prova; i want run class prova and intercept methos invocation,field reading,writing,and object instantiation. I write this the follow code: try{ javassit.reflect.Loader cl = new javassit....
    Profile Photo
    created by icecrash
  • How i can get all method info of a class?

    How i can get and set input parameter of a method? i can use java.reflect for get input parameter structure an type ,then use javassist for set the input parameter?
    Profile Photo
    last modified by icecrash