[ 
https://issues.apache.org/jira/browse/GROOVY-6660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-6660.
-----------------------------

> invalid generics symbol arity does not lead to compilation error
> ----------------------------------------------------------------
>
>                 Key: GROOVY-6660
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6660
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>    Affects Versions: 2.3.0, 2.4.0-beta-3
>            Reporter: Jochen Theodorou
>            Priority: Major
>             Fix For: 2.5.0-alpha-1
>
>
> {code:Java}
> class A {}
> @groovy.transform.CompileStatic
> static <C> void foo() {
>   new A<C>()
> }{code}
> This code should not compile, since A has no generics parameter, but the 
> "new"-call does use one. Most probably all 2.x versions are affected



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to