[jboss-dev-forums] [Javassist Development] - Re: Instrumenting Object comparison statements

Scott Marlow do-not-reply at jboss.com
Thu Aug 15 09:24:51 EDT 2013


Scott Marlow [https://community.jboss.org/people/smarlow] created the discussion

"Re: Instrumenting Object comparison statements"

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

--------------------------------------------------------------
> Is there any developer manual on the implementation of javassist. For example a walkthrough of how the replace() method  in class javassist.expr.NewExpr works. 

 http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/tutorial/tutorial2.html#intro http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/tutorial/tutorial2.html#intro might be helpful to you.

Also, step through the replace() method code while running the Javassist unit tests.  That is what I have been doing to learn more about Javassist internals.

For example, open test source javassist.JvstTest4 in your debugger and set a breakpoint in method testAaload(), run the following command:
>  mvn -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8787 -Xnoagent -Djava.compiler=NONE" clean install -Dtest=javassist.JvstTest4
Then instruct your debugger to attach to port 8787.

Scott
--------------------------------------------------------------

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

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/20130815/51aa8102/attachment.html 


More information about the jboss-dev-forums mailing list