From: bdemsky Date: Tue, 22 Mar 2011 22:34:11 +0000 (+0000) Subject: bug fix X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=98bd83af1b60734b91ef68736bbc3479d39143b4;p=IRC.git bug fix --- diff --git a/Robust/src/IR/ClassDescriptor.java b/Robust/src/IR/ClassDescriptor.java index 8a8ca629..24b5448f 100644 --- a/Robust/src/IR/ClassDescriptor.java +++ b/Robust/src/IR/ClassDescriptor.java @@ -199,10 +199,10 @@ public class ClassDescriptor extends Descriptor { if (cn==null) { return null; } - Set possiblematches=cn.getMethodTable().getSet(md.getSymbol()); - boolean foundmatch=false; + Set possiblematches=cn.getMethodTable().getSetFromSameScope(md.getSymbol()); for(Iterator matchit=possiblematches.iterator(); matchit.hasNext();) { MethodDescriptor matchmd=(MethodDescriptor)matchit.next(); + if (md.matches(matchmd)) { return matchmd; }