Open smillst opened 4 years ago
@HasQualifierParameter
an inherited type annotation addressing the requirement: "If a class extends a @HasQualifierParameter
class (or implements a @HasQualifierParameter
interface), then that class must also be marked@HasQualifierParameter
. "
The requirement "A particular subclass should be able to specify which qualifier parameter should be used for the super class." remains to be addressed.
If a class extends a
@HasQualifierParameter
class (or implements a@HasQualifierParameter
interface), then that class must also be marked@HasQualifierParameter
. A particular subclass should be able to specify which qualifier parameter should be used for the super class. (This is similar toclass StringList implements List<String> {...}
.) For example,@Untainted TaintedBuffer
is an invalid type.See test case in
checker/tests/tainting/SubClassHasQP.java
and manual section ingenerics.tex
.