Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.2
-
Fix Version/s: 1.5.3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The following script produces a java.lang.ClassCastException: org.codehaus.groovy.runtime.GStringImpl with 1.5.2. With 1.5.0 it has printed 'peter'
class Person {
String name
}
Person person = new Person()
String propertyName = 'name'
person."$propertyName" = 'peter'
println person.name
close off release 1.5.4