Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ass3 CHACallGraphBuilder中dispatch方法存在问题 #1

Open
lylanfree opened this issue Nov 16, 2021 · 1 comment
Open

ass3 CHACallGraphBuilder中dispatch方法存在问题 #1

lylanfree opened this issue Nov 16, 2021 · 1 comment

Comments

@lylanfree
Copy link

对比参数列表中未完全匹配所有参数列表,某一相同位置参数类型相同则视为匹配成功,没有类型匹配错误的处理。

for (int i = 0; i < m.getParameterCount(); i++) {
    Type t = m.getParameterType(i);
    Type t1 = method.getParameterType(i);
    if (t.toQuotedString().equals(t1.toQuotedString())) {
        return m;
    }
    ...
}
@canliture
Copy link
Owner

是的。确实。这个逻辑我没注意检查。如果不介意的话,可以提个pr。感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants