Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-JSR-2
-
Component/s: None
-
Labels:None
-
Environment:Windows XP, java 1.4.2_07, CVS Head
-
Number of attachments :
Description
The follow code in file bug2.groovy:
class bug2 {
static void main(String[] args)
}
Causes:
> groovy bug2.groovy
Caught: java.lang.IncompatibleClassChangeError
at bug2.main(c:\Develop\Chess\Groovy\bug2.groovy)
(There's no class BlahBlah anywhere on my path.)
because there is no class BlahBlah, groovy thinks youn want to access a field that is not existent. in jsr-2 with enabled compiler checks you get something like the following message:
H:\testscripts\test.groovy: 79: The variable BlahBlah is undefined in the current scope
@ line 79, column 7.
BlahBlah.Foo()
^
1 Error