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

Unreachable line numbers after ARETURN in bytecode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.5, 2.5.6, 2.5.7
    • 2.5.9, 3.0.0-rc-2
    • bytecode
    • None

    Description

      Starting with Groovy 2.5.5, unreachable line numbers were added to the byte code. This causes tools like JaCoCo to report uncovered lines. Removing these line numbers after the ARETURN would be helpful.

      https://github.com/jacoco/jacoco/issues/884

      ARETURN
      L1
      LINENUMBER 16 L1 <-- new line number that cant be hit after ARETURN
      FRAME FULL [] [java/lang/Throwable]
      NOP
      ATHROW
      LOCALVARIABLE this Lcom/company/Form; L0 L1 0
      MAXSTACK = 2
      MAXLOCALS = 1

       

      Attachments

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              admxiii Adam Estabrook
              Votes:
              5 Vote for this issue
              Watchers:
              6 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 - 1h 20m
                  1h 20m