Groovy
  1. Groovy
  2. GROOVY-585

groovy can't handle public static nested classes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-beta-7
    • Component/s: None
    • Labels:
      None

      Description

      stumbled across this bug while doing some drools SMF testing with the groovy semantic module.

      When you try to assign a static nested class to a groovy variable, a groovy.lang.MissingClassException is thrown:

      I wrote a sample class that demonstrates the problem and will attach to this issue.

      The error from the sample class is:

      groovy.lang.MissingClassException: No such class: Foo.Bar in constructor call for class: groovy. At [1:137] groovy.script

      1. Foo.java
        0.5 kB
        Doug Bryant
      2. GroovyNestedClassTest.java
        2 kB
        Doug Bryant

        Activity

        Doug Bryant created issue -
        Doug Bryant made changes -
        Field Original Value New Value
        Attachment Foo.java [ 12587 ]
        Doug Bryant made changes -
        Attachment GroovyNestedClassTest.java [ 12588 ]
        Guillaume Delcroix made changes -
        Assignee Guillaume Laforge [ guillaume ]
        Guillaume Delcroix made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Guillaume Delcroix made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 1.0-rc1 [ 10964 ]
        james strachan made changes -
        Fix Version/s 1.0-beta-7 [ 11254 ]
        Fix Version/s 1.0-rc1 [ 10964 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12729742 ] Default workflow, editable Closed status [ 12741751 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12968295 ] Default workflow, editable Closed status [ 12976098 ]

          People

          • Assignee:
            Guillaume Delcroix
            Reporter:
            Doug Bryant
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development