[ 
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)}}

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


> 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)

Reply via email to