Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8.1
-
Fix Version/s: 1.8.2, 1.9-beta-3
-
Component/s: Compiler
-
Labels:None
-
Number of attachments :
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.
I suspect this was fixed as part of
GROOVY-4939. Any chance you could try a snapshot, otherwise a better example would be good because the one I just created according to above appears to work in trunk. Thanks.