You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/10/15 19:36:05 UTC
[jira] [Updated] (GROOVY-7631) @CompileStatic compiles 0 != null to
false
[ https://issues.apache.org/jira/browse/GROOVY-7631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher updated GROOVY-7631:
--------------------------------------
Affects Version/s: 2.4.5
Priority: Major (was: Blocker)
> @CompileStatic compiles 0 != null to false
> ------------------------------------------
>
> Key: GROOVY-7631
> URL: https://issues.apache.org/jira/browse/GROOVY-7631
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 2.4.5
> Reporter: Kevin Gu
> Assignee: Cédric Champeau
>
> import groovy.transform.*;
> // @CompileStatic
> class Bug {
> void exec() {
> println 0 != null
> }
> }
> new Bug().exec()
> The above code prints "true". But when @CompileStatic is umcommented, it prints "false".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)