I found a bug in the annotation's equals/hashcode processing.
It wasn't following the spec so you couldn't compare them with JDK annotations
or use them in the same collections.
I've fixed it in javassist head.
Related:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008928#4008928