git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@57 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -571,6 +571,9 @@ public class ClassPool { | |||
* <p>If <code>classname</code> ends with "[]", then this method | |||
* returns a <code>CtClass</code> object for that array type. | |||
* | |||
* <p>To obtain an inner class, use "$" instead of "." for separating | |||
* the enclosing class name and the inner class name. | |||
* | |||
* @param classname a fully-qualified class name. | |||
*/ | |||
public synchronized CtClass get(String classname) |
@@ -35,7 +35,7 @@ public abstract class CtClass { | |||
/** | |||
* The version number of this release. | |||
*/ | |||
public static final String version = "2.7 beta 4"; | |||
public static final String version = "2.7 alpha 5"; | |||
/** | |||
* Prints the version number and the copyright notice. |
@@ -100,19 +100,20 @@ public class MemberResolver implements TokenId { | |||
} | |||
catch (NotFoundException e) {} | |||
/* -- not necessary to search implemented interfaces. | |||
try { | |||
CtClass[] ifs = clazz.getInterfaces(); | |||
int size = ifs.length; | |||
for (int i = 0; i < size; ++i) { | |||
Object[] r = lookupMethod(ifs[i], methodName, argTypes, | |||
argDims, argClassNames); | |||
if (r != null) | |||
return r; | |||
int mod = clazz.getModifiers(); | |||
if (Modifier.isAbstract(mod) || Modifier.isInterface(mod)) | |||
try { | |||
CtClass[] ifs = clazz.getInterfaces(); | |||
int size = ifs.length; | |||
for (int i = 0; i < size; ++i) { | |||
Method r = lookupMethod(ifs[i], null, methodName, | |||
argTypes, argDims, argClassNames, | |||
(onlyExact || maybe != null)); | |||
if (r != null) | |||
return r; | |||
} | |||
} | |||
} | |||
catch (NotFoundException e) {} | |||
*/ | |||
catch (NotFoundException e) {} | |||
if (onlyExact) | |||
return null; |