I’m now focusing on a project requiring insight of Java byte code.
With the help of bcel, I can now complete most of the work. One point that I’m now not clear is how to identify a sub-class method override its base code? Is there any attribute recorded in the .class file associated with a method indicating this overriding relationship or should I go backwards to its base class can compare method signatures?
Any hints will be highly appreciated.
You need to look up the hierarchy chain–there’s nothing in the byte code that indicates it’s an overridden method, because there doesn’t need to be.