Charles Oliver Nutter schrieb: > Jochen Theodorou wrote: >> The third step is unclear to me. How do I forcibly insert my >> implementation into the Class annotation table? I would assume you mean >> getAnnotations() and then change the returned array... no, that cannot >> be it... so what is the trick? > > Here's the actual code in OpenJDK's java.lang.Class: > > // Annotations cache > private transient Map<Class, Annotation> annotations; > private transient Map<Class, Annotation> declaredAnnotations; > > I just insert my fake annotation there :)
ah, ok... so it most probably will not work with another VM? bye Jochen -- Jochen "blackdrag" Theodorou The Groovy Project Tech Lead (http://groovy.codehaus.org) http://blackdragsview.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en -~----------~----~----~----~------~----~------~--~---
