Details
Description
Example:
Map map = new HashMap();
map.put("table1.first_name", "John");
map.put("table1.last_name", "Zoetebier");
Now the following syntax is working:
String firstName = map.get("table1.first_name");
println("First name = ${firstName}");
Each of the following statements throw a compiler error:
println("First name = ${map.get("table1.first_name")}");
println("First name = ${map."table1.first_name"}");
println("First name = ${map["table1.first_name"]}");
There may be other legal statements as well, but the only working statement is that of the standard Java syntax.
Attachments
Issue Links
- is related to
-
GROOVY-769 Parser error when Map key contains period in JSR mode
- Closed