[
https://issues.apache.org/jira/browse/GROOVY-8957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16743715#comment-16743715
]
Paul King commented on GROOVY-8957:
---
Groovy always coerces Strings of length 1 to char when required.
[
https://issues.apache.org/jira/browse/GROOVY-8957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16743715#comment-16743715
]
Paul King edited comment on GROOVY-8957 at 1/16/19 7:29 AM:
Groovy always
[
https://issues.apache.org/jira/browse/GROOVY-8957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16743581#comment-16743581
]
Adithyan K commented on GROOVY-8957:
Calling `as int` to convert a String to int is perfectly ok.
[
https://issues.apache.org/jira/browse/GROOVY-8957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16743411#comment-16743411
]
Paul King commented on GROOVY-8957:
---
This all looks like expected behavior to me. Since Groovy Strings
Adithyan K created GROOVY-8957:
--
Summary: String with length 1, if assigned to int variable,
assigns the ascii value. String with more than 1 length throws
GroovyCastException
Key: GROOVY-8957
URL: