|
|
|
Re: Interface & Session problem [message #650227 is a reply to message #650188] |
Sun, 23 January 2011 12:41 |
No real name Messages: 18 Registered: April 2010 |
Junior Member |
|
|
About interface problem ive downloaded source and i see its very strange for me. This is part of code responsible for that from file SharedObjectMsg.java :
public static Method findMethod(final Class clazz, String meth, Class args[]) {
try {
return ClassUtil.getDeclaredMethod(clazz, meth, args);
} catch (NoSuchMethodException e) {
return null;
}
}
It is called for search invoked method. As you see it gets only declared methods within Class. Thats why for my B interface methods from interface A are invisible. When ive changed to code like this:
public static Method findMethod(final Class clazz, String meth, Class args[]) {
try {
return ClassUtil.getDeclaredMethod(clazz, meth, args);
} catch (NoSuchMethodException e) {
try {
return ClassUtil.getMethod(clazz, meth, args);
} catch (NoSuchMethodException e1) {
return null;
}
}
}
it works fine. Anybody knows whats the reason they've made it such way? Or maybe its some bug?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04750 seconds