You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/09/21 16:15:00 UTC

[jira] [Commented] (GROOVY-7557) Inconsistant CompileStatic conversions

    [ https://issues.apache.org/jira/browse/GROOVY-7557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17418203#comment-17418203 ] 

Eric Milles commented on GROOVY-7557:
-------------------------------------

"char -> Character" and "Character -> char" was fixed in 4.0b1.

https://github.com/apache/groovy/commit/0cb74ad8768c447e9dff96cb1f2211221446b5fb

https://github.com/apache/groovy/commit/01d70022ff22cefc7220f6c67c25c476be1a81a9

> Inconsistant CompileStatic conversions
> --------------------------------------
>
>                 Key: GROOVY-7557
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7557
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>            Reporter: Keegan Witt
>            Priority: Major
>
> Work with {{CompileStatic}}, but I don't think they should
> * char -> byte
> * char -> short
> * int -> char
> * Integer -> char
> * long -> char
> * Long -> char
> * Float -> Byte
> * Double -> Byte
> * Short -> Byte
> * Long -> Short
> * Long -> Integer
> * Float -> Integer
> * Double -> Integer
> * Float -> Long
> * Double -> Long
> * Double -> Float
> Don't work with {{CompileStatic}}, but I think should
> * char -> Character
> * Character -> char
> * char -> Integer
> * Character -> int
> * Character -> Integer
> * char -> Long
> * Character -> long
> * Character -> Long
> * Character -> float
> * char -> Float
> * Character -> Float



--
This message was sent by Atlassian Jira
(v8.3.4#803005)