Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-rc-4
-
Component/s: None
-
Labels:None
-
Environment:groovy-2.0.0-beta-3 / jdk1.7.0_04 (32-bit) / Crunchbang Linux (statler)
-
Number of attachments :
Description
Receive the following error when I attempt to run the attached file (Find.groovy):
Caught: BUG! exception in phase 'class generation' in source unit '/home/jboone/scripts/Find.groovy' operand stack contains 4 elements, but we expected only 5
BUG! exception in phase 'class generation' in source unit '/home/jboone/scripts/Find.groovy' operand stack contains 4 elements, but we expected only 5
Also, when the static members are refactored as instance members I receive the same error (see Find2.groovy).
Both files compile and execute correctly when the @CompileStatic annotation is removed.
Some type checking errors were "swallowed" so the example wasn't properly compiled. The compiler will not report errors properly.