Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.4.10
-
None
Description
import groovy.transform.CompileStatic class Foo { static Foo newInstance(Long v) { return new Foo() } } @CompileStatic //crash only caused by this CompileStatic class TestGroovy { static void main(String ... args) { def a = Foo.newInstance(123) //when @CompileStatic, this calls DefaultGroovyMethods.newInstance println a } }
Attachments
Issue Links
- relates to
-
GROOVY-8488 STC: floating-point literals no longer accepted as args to method with double parameter
- Closed
-
GROOVY-8948 BigDecimal to primitive conversion not working
- Closed