Update of /cvsroot/nice/Nice/src/gnu/bytecode
In directory sc8-pr-cvs1:/tmp/cvs-serv13767/src/gnu/bytecode
Modified Files:
ClassType.java
Log Message:
Also look for methods in super-interfaces.
Index: ClassType.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/ClassType.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** ClassType.java 24 Jun 2003 20:07:38 -0000 1.15
--- ClassType.java 9 Aug 2003 21:01:51 -0000 1.16
***************
*** 599,602 ****
--- 599,612 ----
if (method != null)
return method;
+
+ ClassType[] interfaces = cl.getInterfaces();
+ if (interfaces != null)
+ for (int i = 0; i < interfaces.length; i++)
+ {
+ method = interfaces[i].getMethod(name, arg_types);
+ if (method != null)
+ return method;
+ }
+
cl = cl.getSuperclass();
if (cl == null)
|