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

STC permits incorrect void method reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.4
    • 4.0.5, 3.0.13
    • Static compilation
    • None

    Description

      In a functional pipeline, I mistakenly used map(service::voidMethod) (where the map operation expects Function). This should have produced a compile-time error but instead produced a runtime error out of the LambdaMetafactory.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: