groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GROOVY-6660) invalid generics symbol arity does not lead to compilation error
Date Mon, 30 Oct 2017 12:16:00 GMT

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

Paul King resolved GROOVY-6660.
-------------------------------
       Resolution: Duplicate
    Fix Version/s: 2.5.0-alpha-1

> 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
>             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
(v6.4.14#64029)

Mime
View raw message