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

impossible in 1.7 to access java inner elements from groovy (was possible with 1.6)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.7-beta-1
    • 1.7.1
    • None
    • None
    • MAc os X, eclipse 3.5 + plugin Groovy eclipse v2 (contains groovy 1.7 beta1 snapshot : 1.7.0.20090731)

    Description

      Running old code does not work anymore with groovy 1.7 beta 1 snapshot.

      Outer.java :

      public interface Outer {
        interface Inner {
          static String VAR = "value";
        }
      }
      

      script.groovy:

      assert "value" == Outer.Inner.VAR
      

      running script.groovy results in :
      groovy.lang.MissingPropertyException: No such property: Inner for class: Outer

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            lwi Louis Foucart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: