Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7-beta-2
-
Fix Version/s: 1.6.5, 1.7-beta-2
-
Component/s: parser
-
Labels:None
-
Environment:Mac OS 10.6.1
Java 1.6.0_15
-
Testcase included:yes
-
Number of attachments :
Description
class InvalidListLiteral {
def x = [
[foo: 1, bar: 2] // missing comma
[foo: 1, bar: 2]
]
}
Compilation result:
BUG! exception in phase 'class generation' in source unit 'ConsoleScript13' MapEntryExpression should not be visited here
Although the following compiles, output is very incorrect:
class A { static x = [ [1] [2] ] } assert A.x == [null]