A
Alex Suzuki
Hi there,
I am working on a semester thesis that deals with storing extended
type information in the .class file. The way I do it is via field,
method and class attributes (JVM spec. chapter 4.7). This all works
well, but it would be nice to be able to use reflection at run-time
to get back the information at run-time. However, java.lang.reflect
has no support for attributes.
Does anyone know if there is a reason for this? I know BCEL does it,
but I was wondering if maybe SUN deliberately chose to not include
support for attributes in the Reflection API, and if so, why.
Regards,
Alex
I am working on a semester thesis that deals with storing extended
type information in the .class file. The way I do it is via field,
method and class attributes (JVM spec. chapter 4.7). This all works
well, but it would be nice to be able to use reflection at run-time
to get back the information at run-time. However, java.lang.reflect
has no support for attributes.
Does anyone know if there is a reason for this? I know BCEL does it,
but I was wondering if maybe SUN deliberately chose to not include
support for attributes in the Reflection API, and if so, why.
Regards,
Alex