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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha-3, 2.5.4
    • 3.0.0-alpha-4, 2.5.5
    • Compiler
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: