Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Groovy: Version: 1.0 JVM: 1.5.0_07-87
Env: Mac OS X, Macbook 17"
Description
Running this code in groovy:
memo = [ 0 : 1 , 1 : 1 ]
println "memo.class = ${memo.class}"
println "memo.getClass().getName() = ${memo.getClass().getName()}"
.. produces:
memo.class = null
memo.getClass().getName() = java.util.HashMap
To simplify:
println "[1].class = ${[1].class}"
println "[1:1].class = ${[1:1].class}"
produces:
[1].class = class java.util.ArrayList
[1:1].class = null