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

It is impossible to use nested Java classes and interfaces.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1-beta-1
    • 1.1-rc-3
    • None

    Description

      There is no way to compile and execute code like

      <code>
      ~Big.java~
      public class Big {
      public interface Small

      { public int myInt = 42; }

      }

      ~Script.groovy~
      def small = new Big.Small() {};
      println small.myInt;
      </code>

      Attachments

        Activity

          People

            Unassigned Unassigned
            ilyas ilyas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: