In Groovy, I often use literal literature quite often in my code, and I was curious what specific implementation of Map was.
After several attempts, this script best illustrates my confusion:
def map = ["A":"B"] println map
and get this output:
[A:B] true null
This tells me that the map is apparently a HashMap, but the getClass method does not want to tell me this.
So my question is: why does getClass return null, and is there a better way to get execution class information from Groovy?
Kirie source share