bottleneck by java.lang.Class.getAnnotations() (original) (raw)

Alan Bateman Alan.Bateman at oracle.com
Mon Nov 5 09:25:11 UTC 2012


On 04/11/2012 20:27, Peter Levart wrote:

: I digress. Javadocs say: "The redefinition may change method bodies, the constant pool and attributes. The redefinition must not add, remove or rename fields or methods, change the signatures of methods, or change inheritance. These restrictions maybe be lifted in future versions."

So currently there's no problem since redefinition can only change method bodies, so reflecting over old or new version of the class returns the same results. Here's a good starting place on the interaction of runtime visible attributes and RedefineClasses/RetransformClasses:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5002251

-Alan.



More information about the core-libs-dev mailing list