[
https://issues.apache.org/jira/browse/GROOVY-11151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-11151.
------------------------------
> Example in the Documentation of the Coercion Operator is Wrong
> --------------------------------------------------------------
>
> Key: GROOVY-11151
> URL: https://issues.apache.org/jira/browse/GROOVY-11151
> Project: Groovy
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 4.0.13
> Reporter: Chris Briem
> Assignee: Paul King
> Priority: Minor
> Fix For: 4.0.14, 3.0.19
>
> Attachments: image-2023-08-07-13-25-21-727.png
>
>
> I've had a look at the example in this documentation:
> https://docs.groovy-lang.org/latest/html/documentation/core-operators.html#_coercion_operator
> !image-2023-08-07-13-25-21-727.png!
> The documentation claims that the code should throw a {{ClassCastException}}
> which it doesn't.
> I was confused, and asked in the Groovy slack group for clarification. I was
> told that this might be a documentation bug, and a bug report would be worth
> filing. So here it is ;)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)