[ 
https://issues.apache.org/jira/browse/GROOVY-6352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066549#comment-15066549
 ] 

ASF GitHub Bot commented on GROOVY-6352:
----------------------------------------

GitHub user fpavageau opened a pull request:

    https://github.com/apache/groovy/pull/218

    GROOVY-6352 Check the arguments even for the default constructor

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fpavageau/groovy GROOVY-6352

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/218.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #218
    
----
commit 3522575a375b1beca9a893c801efbfda23fde0c5
Author: Frank Pavageau <[email protected]>
Date:   2015-12-21T15:02:20Z

    GROOVY-6352 Check the arguments even for the default constructor

----


> Type checker ingores 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)

Reply via email to