Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-2, 1.0-JSR-3, 1.0-JSR-4
-
None
-
None
Description
The attached test file "IsClassTestCase.groovy" works fine on JSR-01 or
JSR-02 or JSR-03 or CVS HEAD (JSR-04-SNAPSHOT).
The attached test file "IsClassTestMain.groovy" works fine on JSR-01,
but it fails on JSR-02 or JSR-03 or CVS HEAD (JSR-04-SNAPSHOT).
The generated error message is:
C:\test> groovy IsClassTestMain.groovy
IsClassTestMain.groovy: 6: StaticSomeClass is declared in a dynamic context, but
you tried to access it from a static context.
@ line 6, column 18.
println( StaticSomeClass instanceof java.lang.Class ) // does not work in main() since JSR-02
^
1 Error