Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.5
-
None
-
None
Description
The following assert for a non-zero long value fails when annotated with CompileStatic. For example:
def foo() { long value = 17179869184 assert value, "Foo is OK" } @groovy.transform.CompileStatic def bar() { long value = 17179869184 assert value, "Bar failed" } foo() bar() java.lang.AssertionError: Bar failed. Expression: value. Values: value = 17179869184 at ConsoleScript31.bar(ConsoleScript31:10) at ConsoleScript31.run(ConsoleScript31:14)
Attachments
Issue Links
- links to