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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development