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

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

daniellansun opened a new pull request, #3074:
URL: https://github.com/apache/groovy/pull/3074

   ## Summary
   
   `GenericsUtils.parameterizeType` now keeps bounded wildcards when projecting 
onto a
   supertype (e.g. `ArrayList<? extends Number>` → `List<? extends Number>`, not
   `List<Number>`; `? super` similarly). Unbounded `?` still uses the declared 
bound
   (GROOVY-10651 unchanged). Other `extractSuperClassGenerics` callers are 
unchanged.
   
   https://issues.apache.org/jira/browse/GROOVY-11521




> GenericsUtils parameterizeType fails to propagate wildcard generics
> -------------------------------------------------------------------
>
>                 Key: GROOVY-11521
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11521
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Priority: Major
>
> Given a class node like "java.util.ArrayList<? extends java.lang.Number>", 
> calling {{GenericsUtils.parameterizeType(arrayList, list)}} produces 
> "java.util.List<java.lang.Number>".  The wildcard has been lost.
> This method is used in STC and elsewhere.
> GROOVY-8084, GROOVY-9074, GROOVY-9891



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to