-
When using TransformingClassGenerator to transform a class (for example InterceptFieldTransformer), class and method field annotations are preserved, but field level annotations are lost. This happens since the visitField method in net.sf.cglib.core.ClassEmitter does not return a FieldVisitor. There is a TODO listed on line 264 of that file that obviously has not been done. Since all the...
2009-05-26 18:45:13 UTC by bboyrival
-
I've found that ClassEmitter does not preserve field annotations. I've managed to figure out why, and was wondering if there is a good workaround or fix.
On line 264 in net.sf.cglib.core.ClassEmitter, there is a TODO to return the FieldVisitor. It appears that if the FieldVisitor is not returned, the field annotations present on the class being transformed are not written. I was going to...
2009-05-25 20:35:09 UTC by bboyrival
-
It seems the FastClass functionality has nothing built in for getting field information (e.g. Class.getFields()). It would be great if it could be added, together with setAccessible() support, so that one could access private fields as well.
thanks.
2009-03-31 12:42:59 UTC by nobody
-
Sorry, This was my error - I didn't have the Annotation's RetentionPolicy set correctly.
2009-03-15 04:33:23 UTC by mcschweets
-
The MethodInterceptor.intercept method receives a Method argument for the intercepted method. I've verified this in a debugger - the Method.clazz field contains a Class instance for my 'com.abc.xyz.MyClass' Class (not the cglib proxy). There is an Annotation on this method in class MyClass which is missing from the Method argument passed into MethodInterceptor.intercept.
Why is this? I've...
2009-03-14 06:07:08 UTC by mcschweets
-
Obsolete.
2009-01-11 20:31:21 UTC by herbyderby
-
Fixed.
2009-01-11 20:29:38 UTC by herbyderby
-
Fixed.
2009-01-11 20:27:44 UTC by herbyderby
-
herbyderby committed patchset 691 of module cglib to the Code Generation Library CVS repository, changing 1 files.
2009-01-11 20:09:48 UTC by herbyderby
-
herbyderby committed patchset 690 of module cglib to the Code Generation Library CVS repository, changing 1 files.
2009-01-11 20:02:56 UTC by herbyderby