[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: AnnotatedElementMetaDataLoader doesn't work for private
alesj
do-not-reply at jboss.com
Fri Aug 8 05:05:50 EDT 2008
Which MDR version is this?
Since this looks OK in MDR trunk:
| else if (signature instanceof MethodSignature)
| {
| MethodSignature methodSignature = (MethodSignature) signature;
| Method method = methodSignature.getMethod();
| if (method == null)
| method = ReflectionUtils.findMethod(clazz, signature.getName(), signature.getParametersTypes(clazz));
|
Where RU.findMethod is
| public static Method findMethod(Class<?> clazz, String name, Class<?>... parameterTypes)
| {
| if (clazz == null)
| return null;
|
| try
| {
| return clazz.getDeclaredMethod(name, parameterTypes);
| }
| catch(Exception ignored)
| {
| }
| return findMethod(clazz.getSuperclass(), name, parameterTypes);
| }
|
Looking up declared methods, means it includes private as well. ;-)
"wolfc" wrote :
| Dare I say, I consider this a bug.
|
I see you're the same as vickyk:
- http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168997#4168997
;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169519#4169519
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169519
More information about the jboss-dev-forums
mailing list