groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8384) Regression in 2.4.13 (snapshot) with STC and intdiv
Date Sun, 19 Nov 2017 05:05:00 GMT

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

ASF GitHub Bot commented on GROOVY-8384:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/groovy/pull/639


> Regression in 2.4.13 (snapshot) with STC and intdiv
> ---------------------------------------------------
>
>                 Key: GROOVY-8384
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8384
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static compilation
>    Affects Versions: 2.4.13
>         Environment: any
>            Reporter: Patric Bechtel
>
> Even with the fix of 8380, the following still fails:
> {code}
> @groovy.transform.CompileStatic
> class GanzBla {
>    static void main(String[] args) {
>       def a = 5.intdiv(2)
>       assert a.class == java.lang.Integer
>       def b = new Long( 5.intdiv(2) )
>    }
> }
> {code}
> Without CS, this just works, the type of 5.intdiv(2) is an Integer. With STC, it's a
number suddenly. In 2.4.12, this still works flawlessly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message