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

NPE: Groovy compiler error: exception in phase 'conversion' in source unit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta-1, 2.5.7, 2.4.17
    • Fix Version/s: 2.5.8, 3.0.0-beta-2
    • Component/s: None
    • Labels:
      None

      Description

      Abstract method with body in script causes NPE in AntlrParserPlugin. Expected is compiler error "Abstract methods do not define a body."

      abstract def meth() {
        println 42
      }
      

      Pull request forthcoming.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                paulk Paul King
                Reporter:
                emilles Eric Milles
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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