[
https://issues.apache.org/jira/browse/GROOVY-10618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-10618:
---------------------------------
Description: 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. (was: 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 method handle and cached call site. Also, the
not expression can be optimized somewhat as well.)
> 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
>
>
> 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)