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

Paul King resolved GROOVY-8976.
-------------------------------
    Fix Version/s: 6.0.0-alpha-1
         Assignee: Paul King
       Resolution: Fixed

This is fixed in Groovy 6 (in my tests) but maybe also earlier.

> Groovydoc interprets /** in string as groovydoc comment
> -------------------------------------------------------
>
>                 Key: GROOVY-8976
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8976
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-groovydoc
>    Affects Versions: 2.5.5
>            Reporter: Christopher Wright
>            Assignee: Paul King
>            Priority: Minor
>             Fix For: 6.0.0-alpha-1
>
>
> In my groovy code, I had a statement like this:
>  
> {code:java}
> steps.archiveArtifacts allowEmptyArchive: true, artifacts: 
> "$archiveLocation/**/*.*"
> {code}
> I then ran groovydoc and the next method in my class file had all of the text 
> present from the /** in the statement above to the ending groovydoc comment 
> of the method.
>  
> The groovydoc for the method in question can be seen here: 
> [https://github.com/zowe/zowe-cli-version-controller/blob/0b3138d0b1f581cdfac2556baf9261b51dd473df/docs/groovydoc/org/zowe/pipelines/nodejs/NodeJSRunner.html#L876]
>  
> The actual doc comment can be found here: 
> https://github.com/zowe/zowe-cli-version-controller/blob/0b3138d0b1f581cdfac2556baf9261b51dd473df/src/org/zowe/pipelines/nodejs/NodeJSRunner.groovy#L431
>  
> As a workaround, I currently have replaced the problem step to:
> {code:java}
> steps.archiveArtifacts allowEmptyArchive: true, artifacts: 
> "$archiveLocation/*" + "*/*.*"{code}
> This change now allows the next method to properly be documented.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to