git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2661 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2008-03-04 16:16:36 +00:00
parent d427d32b6b
commit 62565dc8dd
1 changed files with 5 additions and 5 deletions

View File

@ -140,18 +140,18 @@ public class StrutsEntrypoints implements Iterable<Entrypoint>, EJBConstants {
* @param klass an Action
*/
private void addSpeculativeDispatchMethods(IClass klass, IClassHierarchy cha) {
IClass C = klass;
while (C != null) {
for (Iterator<IMethod> it = C.getDeclaredMethods().iterator(); it.hasNext();) {
IClass c = klass;
while (c != null) {
for (Iterator<IMethod> it = c.getDeclaredMethods().iterator(); it.hasNext();) {
IMethod M = (IMethod) it.next();
Descriptor D = M.getDescriptor();
if (D.equals(executeDesc) || D.equals(httpExecuteDesc)) {
MethodReference m = MethodReference.findOrCreate(klass.getReference(), M.getName(), M.getDescriptor());
entrypoints.put(m, new StrutsActionEntrypoint(C, M, cha));
entrypoints.put(m, new StrutsActionEntrypoint(klass, M, cha));
}
}
try {
C = C.getSuperclass();
c = c.getSuperclass();
} catch (ClassHierarchyException e) {
e.printStackTrace();
Assertions.UNREACHABLE();