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

Stephane Talbot commented on GROOVY-10593:
------------------------------------------

Star imports were not properly added in the list of imports used by 
SimpleGroovyClassDoc.

For Static imports, the problem seems that in SimpleGroovyRootDoc, 
GroovydocJavaVisitor and GroovydocVisitor class names are handled with slashes 
in the package part but dots in the class/subclass part while imports have only 
slashes.
Thus, static class _import a.ClassA.CassB_ as an import is seen as 
*a/ClassA/ClassB* when internally _class a.ClassA.CassB_ as class is handled as 
*a/ClassA.ClassB* and the two do no match.



 

 

> Groovydoc links to wrong type
> -----------------------------
>
>                 Key: GROOVY-10593
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10593
>             Project: Groovy
>          Issue Type: Bug
>          Components: GroovyDoc
>    Affects Versions: 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 4.0.0, 
> 4.0.1
>            Reporter: Stephane Talbot
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When I generate groovydoc for the following classes:
> {code:title=a/List.java}
> package a;
> public interface List {}
> {code}
>  
> {code:title=b/Test.groovy}
> package b
> import a.List
> public interface Test extends List {}
> {code}
> Then in the documentation of the Test interface, the _List_ interface is 
> linked with *java.util.List* instead of {*}a.List{*}.
> It was working as expected until Groovy 3.0.4



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to