facebook / facebook/infer

Infer issue not being detected - CHECKERS_CALLS_EXPENSIVE_METHOD

Open
#1,921 0 comments 0 reactions 0 assignees View on GitHub
java
Dominant language
OCaml
Stars
15.7k
Forks
2.1k
Avg merge
19h 36m
Merged PRs (30d)
13

Description

This infer bug is being detected in the Java code below, CHECKERS_CALLS_EXPENSIVE_METHOD, with version 1.0.0 and the --annotation-reachability flag, but it's not being detected when scanned with infer 1.2.0.

Is this a known issue, and will the documentation be updated if a different flag is used?

`````````
import com.facebook.infer.annotation.*;

class C {
@PerformanceCritical
void perfCritical() {
expensive();
}
@Expensive
void expensive() {}
// BUG: CHECKERS_CALLS_EXPENSIVE_METHOD

public void showBug() {
perfCritical();
}
}
`````````

Command:
infer run --annotation-reachability -- javac C.java

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.