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
If I run it through the Tainting Checker, I get these errors:
$ checker-framework/checker/bin/javac -processor tainting Walker.java
Walker.java:14: error: [return] incompatible types in return.
return StreamUtils.optionalToStream(classProvider.provide());
^
type of expression: @Tainted Stream<@Tainted Foo>
method return type: @Tainted Stream<? extends capture#01 extends @Tainted Foo>
Walker.java:14: error: [type.arguments.not.inferred] Could not infer type arguments for StreamUtils.optionalToStream
return StreamUtils.optionalToStream(classProvider.provide());
^
unsatisfiable constraint: @Tainted Foo <: capture#01 extends @Tainted Foo
2 errors
I get similar errors with the Called Methods Checker / Resource Leak Checker, but not with the Nullness Checker (I do get the expected nullness error in optionalToStream).
Are these errors expected?
The text was updated successfully, but these errors were encountered:
Test case (reduced from other code):
If I run it through the Tainting Checker, I get these errors:
I get similar errors with the Called Methods Checker / Resource Leak Checker, but not with the Nullness Checker (I do get the expected nullness error in
optionalToStream
).Are these errors expected?
The text was updated successfully, but these errors were encountered: