[jira] [Commented] (GROOVY-8957) String with length 1, if assigned to int variable, assigns the ascii value. String with more than 1 length throws GroovyCastException

2019-01-15 Thread Paul King (JIRA)
[ 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.

[jira] [Comment Edited] (GROOVY-8957) String with length 1, if assigned to int variable, assigns the ascii value. String with more than 1 length throws GroovyCastException

2019-01-15 Thread Paul King (JIRA)
[ 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

[jira] [Commented] (GROOVY-8957) String with length 1, if assigned to int variable, assigns the ascii value. String with more than 1 length throws GroovyCastException

2019-01-15 Thread Adithyan K (JIRA)
[ 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.

[jira] [Commented] (GROOVY-8957) String with length 1, if assigned to int variable, assigns the ascii value. String with more than 1 length throws GroovyCastException

2019-01-15 Thread Paul King (JIRA)
[ 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

[jira] [Created] (GROOVY-8957) String with length 1, if assigned to int variable, assigns the ascii value. String with more than 1 length throws GroovyCastException

2019-01-15 Thread Adithyan K (JIRA)
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: