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

Error compiling static inner class that extends some other (static) inner class

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha-3, 2.5.4
    • Fix Version/s: 3.0.0-alpha-4, 2.5.5
    • Component/s: Compiler
    • Labels:
      None

      Description

      If inner static class extends some other inner static class that already compiled then compiler gives errors like this:

       -1: "methodMissing" implementations are not supported on static inner classes as a synthetic version of "methodMissing" is added during compilation for the purpose of outer class delegation.

      No error when class being extended is in current compilation.

       

      Demo project: https://github.com/grv87/groovy-inner-static-class

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              grv87 Basil Peace
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: