[JSR308] Dynamic proxy classes

Neal Gafter gafter at google.com
Sat May 19 00:54:49 EDT 2007

Since an annotation doesn't affect the type itself, I do not believe an
annotation on a type in an interface should be duplicated into a proxy

On May 18, 2007 8:58 PM, Michael Ernst <mernst at csail.mit.edu> wrote:
> A dynamic proxy class is a class (created by java.lang.reflect.Proxy) that
> is created at run time and that implements a list of interfaces (that are
> also given at run time). What annotations should appear on the methods of
> the proxy class? Arguably, whichever annotations were on the methods of
> the
> given interfaces (when a method appears more than once, whatever
> annotations are on the method whose interface appears first in the
> list). But whether an annotation should be transferred to a proxy class
> may
> depend on the annotation itself; should there be a way to indicate how it
> should be treated? (Is this better handled in JSR 305?) How does Java
> handle this currently? Do we believe the current behavior is incorrect and
> needs to be amended in JSR 308?
>                    -Mike
> _______________________________________________
> JSR308 mailing list
> JSR308 at lists.csail.mit.edu
> https://lists.csail.mit.edu/mailman/listinfo/jsr308
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.csail.mit.edu/pipermail/jsr308/attachments/20070518/c7272c06/attachment.htm

More information about the JSR308 mailing list