You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/02/17 16:49:00 UTC

[jira] [Updated] (GROOVY-10501) Java compat: support type arguments for constructor call

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

Eric Milles updated GROOVY-10501:
---------------------------------
    Description: 
Consider the following:
{code:java}
class Pojo {
  public <T> Pojo(T t) {
  }
}
{code}

Java supports explicit type arguments via {{new <Type>Pojo(null)}}

If Groovy were to add support for this, then {{@Newify}} would need some consideration as well for supporting this kind of thing.

  was:
Consider the following:
{code:java}
class Pojo {
  public <T> Pojo(T t) {
  }
}
{code}

Java supports explicit type arguments via {{new <Type>Pojo(null)}}


> Java compat: support type arguments for constructor call
> --------------------------------------------------------
>
>                 Key: GROOVY-10501
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10501
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Priority: Minor
>
> Consider the following:
> {code:java}
> class Pojo {
>   public <T> Pojo(T t) {
>   }
> }
> {code}
> Java supports explicit type arguments via {{new <Type>Pojo(null)}}
> If Groovy were to add support for this, then {{@Newify}} would need some consideration as well for supporting this kind of thing.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)