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

groovy can't handle public static nested classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • None
    • 1.0-beta-7
    • None
    • 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

      Attachments

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

        Activity

          People

            guillaume Guillaume Sauthier
            dougbryant Doug Bryant
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: