Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.6
-
None
Description
Currently, when the static type checker detects a mismatch in generic bounds, it outputs a message of the form
Groovy:[Static type checking] - Cannot call <D> io.vavr.control.Either <com.example.JsonApiErrorResponse, com.example.JsonApiDataResponse>#toResponseEntity() with arguments []
In this case, both JsonApiErrorResponse and JsonApiDataResponse are generic types themselves. It would be helpful for debugging (either identifying STC problems or realizing where my own errors are) if the error message output the actual bounds involved. As it is, it's unclear exactly what the STC doesn't like about my pipeline, and in some of these cases it appears that it may be having trouble solving nested generics.