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

shim classes generated incorrectly in 1.8.1 (was fine in 1.8.0) for some static inner-class usages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.1
    • 1.8.2, 1.9-beta-3
    • Compiler
    • None

    Description

      Static inner classes that are imported into Groovy scripts just fine in 1.8 are causing compilation issues in 1.8.1

      To reproduce:
      1) Java class Foo.Bar where Bar is public static within Foo.
      2) Groovy script references the Foo.Bar as a type with an arglist to a method.

      3) Groovy/Maven/Shim compiler puts a $ in the generated Java source name instead of a dot.

      As I said, all that changed between working and not working is the version of Groovy. This worked in 1.8.0 and at least some recent 1.7.x versions.

      Attachments

        Activity

          People

            paulk Paul King
            paul Paul Hammant
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: