You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "paolo di tommaso (JIRA)" <ji...@apache.org> on 2016/05/20 19:31:13 UTC
[jira] [Created] (GROOVY-7841) Assert fail with @CompileStatic
annotaion
paolo di tommaso created GROOVY-7841:
----------------------------------------
Summary: Assert fail with @CompileStatic annotaion
Key: GROOVY-7841
URL: https://issues.apache.org/jira/browse/GROOVY-7841
Project: Groovy
Issue Type: Bug
Affects Versions: 2.4.5
Reporter: paolo di tommaso
Priority: Minor
The following assert for a non-zero long value fails when annotated with CompileStatic. For example:
{code}
def foo() {
long value = 17179869184
assert value, "Foo is OK"
}
@groovy.transform.CompileStatic
def bar() {
long value = 17179869184
assert value, "Bar failed"
}
foo()
bar()
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)