missing ClassReader.accept(ClassVisitor,boolean) method breaks legacy code
In trying to organize the .jar files in a recent project which involved
OpenEJB, I ran into some code which errors due to the fact that the
org.objectweb.asm.ClassReader.accept(ClassVisitor,boolean) method was removed
in a previous release and replaced with accept(ClassVisitor,int).
I was able to make everything work by just recompiling with this method added
in to org/objectweb/asm/ClassReader.java
/**
* Added this in for compatibility
* @param classVisitor
* @param skipDebug
* @deprecated
*/
public void accept(final ClassVisitor classVisitor, final boolean skipDebug)
{
accept(classVisitor, new Attribute[0], SKIP_DEBUG);
}
Can you add back in this method? It has no functional impact, is a very small
amount of mess, but would allow OpenEJB and possibly other projects which broke
between v2.x and 3.x to now work properly with the new code.
What do you think?