[jboss-dev-forums] [Javassist Development] - Using Javassist without compilation

MK Song do-not-reply at jboss.com
Wed Feb 29 11:33:29 EST 2012


MK Song [https://community.jboss.org/people/mksong] created the discussion

"Using Javassist without compilation"

To view the discussion, visit: https://community.jboss.org/message/720632#720632

--------------------------------------------------------------
I know it would be so funny question. 


Can I use a Javassist API, such as methodB.insertBefore("System.out.println(...)");

without the entire compilation of class "A"?


For example, If I have class "A" that extends "HttpServlet", the current implementation should look up

"HttpServlet" class, in order to compile and instrument class "A".

Can I weave some method call in a method in class "A" 

not compiling entire class "A" but generating only the bytecode for the transformed method?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/720632#720632]

Start a new discussion in Javassist Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2063]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120229/f48e50fd/attachment.html 


More information about the jboss-dev-forums mailing list