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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-beta-1, 2.5.7, 2.4.17
    • 2.5.8, 3.0.0-beta-2
    • None
    • 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

              paulk Paul King
              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