[
https://issues.apache.org/jira/browse/GROOVY-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pascal Schumacher updated GROOVY-6352:
--------------------------------------
Summary: Type checker ignores wrong number of constructor arguments (was:
Type checker ingores wrong number of constructor arguments)
> Type checker ignores wrong number of constructor arguments
> ----------------------------------------------------------
>
> Key: GROOVY-6352
> URL: https://issues.apache.org/jira/browse/GROOVY-6352
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Affects Versions: 2.1.7, 2.2.0-beta-2, 2.3.0, 2.4.0-rc-1
> Reporter: Jochen Theodorou
>
> {code:Java}
> class X {}
> @groovy.transform.CompileStatic
> def foo() {
> new X("f")
> }
> println foo()
> {code}
> This code compiles and runs in static compilation, even though the type
> checker should have complained. In normal Groovy this fails at runtime, as
> does if the type checker only is used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)