Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9800

Log generic mismatches extensively

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.6
    • 4.0.0-beta-1
    • Static Type Checker
    • 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.

      Attachments

        Activity

          People

            emilles Eric Milles
            chrylis Christopher Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h