8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
对于一下的情况,data_type 类型边连接出错:
public static void scan1() { char x1 = 'a'; char x2 = 'b'; int x_val = digits[x1] * 16 + digits[x2]; char x_char = (char) x_val; }
问题发生原因: x_char 会被认为是 char 的类,因为 findEntityNodeByName 是按最后字符串一致来判断是否找到 Entity
x_char
char
findEntityNodeByName
edu/pku/code2graph/gen/jdt/AbstractJdtVisitor.java 代码:
edu/pku/code2graph/gen/jdt/AbstractJdtVisitor.java
protected Optional<Node> findEntityNodeByName(String name) { if (defPool.containsKey(name)) { return Optional.of(defPool.get(name)); } else { // greedily match as simple name return defPool.entrySet().stream() .filter(e -> e.getKey().endsWith(name)) // 这里有问题 .map(Map.Entry::getValue) .findFirst(); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
对于一下的情况,data_type 类型边连接出错:
问题发生原因:
x_char
会被认为是char
的类,因为findEntityNodeByName
是按最后字符串一致来判断是否找到 Entityedu/pku/code2graph/gen/jdt/AbstractJdtVisitor.java
代码:The text was updated successfully, but these errors were encountered: