[
https://issues.apache.org/jira/browse/GROOVY-10618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Sun updated GROOVY-10618:
--------------------------------
Fix Version/s: 4.0.3
> 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: 5.0.0-alpha-1, 4.0.3
>
>
> 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.7#820007)