[
https://issues.apache.org/jira/browse/GROOVY-7340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-7340.
-----------------------------
> GroovyDoc doesn't understand method type parameters
> ---------------------------------------------------
>
> Key: GROOVY-7340
> URL: https://issues.apache.org/jira/browse/GROOVY-7340
> Project: Groovy
> Issue Type: Bug
> Components: GroovyDoc
> Affects Versions: 2.4.2
> Reporter: Paul King
> Assignee: Paul King
> Fix For: 2.4.8
>
>
> GroovyDoc doesn't understand generics placeholders, e.g.: as part of
> GROOVY-7281, the type signature of a DGM withStream method changed from:
> {code}
> public static <T> T withStream(InputStream stream,
> @ClosureParams(value=SimpleType.class, options="java.io.InputStream")
> Closure<T> closure) throws IOException {
> {code}
> to:
> {code}
> public static <T, U extends InputStream> T withStream(U stream,
> @ClosureParams(value=FirstParam.class) Closure<T> closure) throws IOException
> {
> {code}
> As a result, the gapi documentation shown for the method summary changed
> from this:
> {code}
> static T withStream(InputStream stream, Closure<T> closure)
> {code}
> to this:
> {code}
> static T withStream(U stream, Closure<T> closure)
> {code}
> Similarly, the method detail has the same error.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)