[JSR308] Dynamic proxy classes

Michael Ernst mernst at csail.mit.edu
Fri May 18 23:58:11 EDT 2007


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



More information about the JSR308 mailing list