Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-10
-
None
-
Windows XP, JVM 1.4.2_07, groovy 1.0-beta-10 in JSR mode
Description
The printMapParserError method displays this bug when in JSR mode. When the key property of a map contains a period the parser displays the error:
"Caught: General error during parsing: unexpected token: :"
class MapTester {
def key = "id"
void printMap()
{ myMap = [key:1234] println myMap }void printMapParserError()
{ myMap = [this.key:1234] println myMap }static void main(String[] args)
{ new MapTester.printMap() new MapTester.printMapParserError() }}
Attachments
Attachments
Issue Links
- relates to
-
GROOVY-866 negative number can be used as key for map
- Closed
-
GROOVY-843 Compile error in GString when there is a "." in Map key
- Closed