logo       

RE: RFC: Reflection refactoring: msg#00164

java.classpath.patches

Subject: RE: RFC: Reflection refactoring

Archie Cobbs wrote:
> Jeroen Frijters wrote:
> > I would like to add an indirection layer to reflection (attached is
> > java.lang.reflect.Field, but I also want to do this for Method and
> > Constructor). By doing this, we can start caching these
> objects in Class
> > and have a Classpath common reflection caching mechanism.
>
> Aren't these mutable objects though?

java.lang.reflect.Field is mutable, that's why I introduced VMField, it
contains the immutable "guts" of the field, and Field is simply a very
thin wrapper around it.

Regards,
Jeroen


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise