How to know the type of this list? In case it would be java.lang.String
I’m not an expert on Groovy (far from being). But considering that JVM implements type Erasure, it is quite likely that it is not possible for you to get type Parameter from a generic type (unless you yourself store type information in another way).
Able to solve now through this link http://stackoverflow.com/questions/1942644/get-generic-type-of-java-util-list as groovy is a "turbo java, but dynamic" gave the right code
I’m not an expert on Groovy (far from being). But considering that JVM implements type Erasure, it is quite likely that it is not possible for you to get type Parameter from a generic type (unless you yourself store type information in another way).
– rsenna
Able to solve now through this link http://stackoverflow.com/questions/1942644/get-generic-type-of-java-util-list as groovy is a "turbo java, but dynamic" gave the right code
– Rodrigo Rodrigues