We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7caca0a commit 7243ceaCopy full SHA for 7243cea
src/main/java/pascal/taie/analysis/graph/callgraph/CHABuilder.java
@@ -176,9 +176,12 @@ private Set<JMethod> resolveCalleesOf(Invoke callSite) {
176
}
177
yield callees.size() <= calleeLimit ? callees : Set.of();
178
179
- case SPECIAL, STATIC -> Set.of(callSite.getMethodRef().resolve());
+ case SPECIAL, STATIC -> {
180
+ JMethod callee = callSite.getMethodRef().resolveNullable();
181
+ yield callee == null ? Set.of() : Set.of(callee);
182
+ }
183
case DYNAMIC -> {
- logger.debug("CHA cannot resolve invokedynamic {}", callSite);
184
+ logger.warn("CHA cannot resolve invokedynamic {}", callSite);
185
yield Set.of();
186
187
default -> throw new AnalysisException(
0 commit comments