RFR: JDK-8054987: (reflect) Add sharing of annotations between instances of Executable
joel.franck at oracle.com
Mon Aug 18 08:23:07 UTC 2014
Hi Peter, Joe,
On 2014-08-14, Peter Levart wrote:
> On 08/14/2014 08:47 AM, Joel Borggren-Franck wrote:
> >On 2014-08-13, Joe Darcy wrote:
> >>Hi Joel,
> >>Does your changeset alter the support (or non-support) of redefining
> >>an annotation?
> >Hi Joe,
> >It does not interact with the current non-support and I am convinced it
> >wont hinder us in improving the situation.
> Hi Joel,
> Good to see this patch. It improves the efficiency of annotations
> caching on methods/constructors. What about fields? They too are
> AccessibleObject(s), contain annotations and are copied from root
> instances when handed over to the user...
> The difference of behaviour in the presence of class redefinition
> could be observed though, but I think this is not a problem. For
Thanks for taking a look at this. You are right about Fields, I added
caching for Fields too:
I don't want to rewrite the synchronization in this patch, I'll file a
followup RFE for the synchronization and a REF/bug for the publication.
More information about the core-libs-dev