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

Groovy 3 generated lambda classes are marked as synthetic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.6
    • 3.0.7, 4.0.0-alpha-2
    • Compiler
    • None

    Description

      I noticed that JaCoCo does not include in the coverage report Groovy 3 lambdas (contrary to closures).

       

      After asking on the JaCoCo group, the JaCoCo maintainer suggested me to ask on the Groovy side. The problem is that the generated class for lambda is marked as synthetic, which is not the case for the closure class. Here is a full discussion: 

      https://groups.google.com/g/jacoco/c/MR4mrJB-kVE

      Related discussion from Groovy mailing list: 

      https://lists.apache.org/thread.html/r64dfb7579ea613d84abf0d8f74839db9af0b5d0191b33418f1398b8c%40%3Cusers.groovy.apache.org%3E

       

      Attachments

        Activity

          People

            paulk Paul King
            dmurat Damir Murat
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 40m
                40m