[jboss-user] [Javassist] - Acessing instance initializer via Javassist

Alexey Zhukov do-not-reply at jboss.com
Thu Oct 21 06:03:08 EDT 2010

Alexey Zhukov [http://community.jboss.org/people/r3k0j] created the discussion

"Acessing instance initializer via Javassist"

To view the discussion, visit: http://community.jboss.org/message/567626#567626

Can i access instance initializer of class using Javassist to modificate it, copy to method or delete?

class MyClass {     
     static {
          // i can access this one using CtClass.getClassInitializer()
     public static void main(String[] args) {
         new MyClass() {
             { // need to access this one

Reply to this message by going to Community

Start a new discussion in Javassist at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101021/60c23268/attachment.html 

More information about the jboss-user mailing list