JBoss Community

Re: Method Content Comparison

created by Stuart Douglas in Javassist - View the full discussion

I think you would have to use a CodeIterator to go over the code one instruction at a time and compare them. You need to make sure that the instructions are the same, and also that the value of any items that they point to in the const pool is also the same. A complete list of the bytecode instructions can be found at:

 

http://java.sun.com/docs/books/jvms/second_edition/html/Instructions2.doc.html

Reply to this message by going to Community

Start a new discussion in Javassist at Community