Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6943

Improve exceptions within TypeExtractionUtils#getSingleAbstractMethod

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None
    • None

    Description

      Exception message seems to be inexact.
      Also if there is no SAM, sam would be null upon returning from the method.

      The suggestion from a review was to change the message and add a check (for null sam) prior to returning.

      Another suggestion is to check if the given method is an interface, as only for interface it is possible to pass lambda.

      Attachments

        Issue Links

          Activity

            People

              dwysakowicz Dawid Wysakowicz
              dwysakowicz Dawid Wysakowicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: