[
https://issues.apache.org/jira/browse/GROOVY-10618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-10618:
---------------------------------
Fix Version/s: 3.0.13
> SC: further optimize cast to bool
> ---------------------------------
>
> Key: GROOVY-10618
> URL: https://issues.apache.org/jira/browse/GROOVY-10618
> Project: Groovy
> Issue Type: Improvement
> Components: Static compilation
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Minor
> Fix For: 4.0.3, 3.0.13
>
>
> Implicit boolean conversion is currently handled by invokedynamic cast (see
> CastSelector) unless the source type is primitive, Boolean or an effectively
> final class. The case for null can be handled without the need for a call
> site / method handle. Also, the not expression can be optimized somewhat as
> well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)