You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import org.checkerframework.checker.tainting.qual.Tainted;
import org.checkerframework.framework.qual.HasQualifierParameter;
@HasQualifierParameter(Tainted.class)
public class InnerHasQualifierParameter {
@HasQualifierParameter(Tainted.class)
interface TestInterface {
public void testMethod();
}
public void test() {
TestInterface test =
new TestInterface() {
public void testMethod() {}
};
}
}
Running the tainting checker with the command javac -processor tainting checker/tests/tainting/InnerHasQualifierParameter.java results in the following error:
checker/tests/tainting/InnerHasQualifierParameter.java:14: error: [missing.has.qual.param] Missing @HasQualifierParameter for hierarchy @Tainted.
new TestInterface() {
^
Class extends or implements a type that has a qualifier parameter.
1 error
While this is an expected output, there is no way to explicitly annotate the anonymous class with @HasQualifierParameter.
Proposed solution: Make @HasQualifierParameter an inherited annotation type.
The text was updated successfully, but these errors were encountered:
t-rasmud
added a commit
to t-rasmud/checker-framework
that referenced
this issue
Oct 25, 2020
Consider the following test case:
Running the tainting checker with the command
javac -processor tainting checker/tests/tainting/InnerHasQualifierParameter.java
results in the following error:While this is an expected output, there is no way to explicitly annotate the anonymous class with
@HasQualifierParameter
.Proposed solution: Make
@HasQualifierParameter
an inherited annotation type.The text was updated successfully, but these errors were encountered: