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

Olivier Lamy commented on MJAVADOC-662:
---------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-javadoc-plugin#1041|https://github.com/apache/maven-javadoc-plugin/issues/1041].
 

> Generated javadoc for static final fields should be HTML escaped
> ----------------------------------------------------------------
>
>                 Key: MJAVADOC-662
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-662
>             Project: Maven Javadoc Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: fix
>            Reporter: Jin Xu
>            Assignee: Robert Scholte
>            Priority: Major
>             Fix For: 3.3.0
>
>
> https://github.com/apache/maven-javadoc-plugin/pull/59
> {code:java}
>     protected static final int MultiTime = 1 << 4;
> {code}
> will become 
> {code:java}
>     /** Constant <code>MultiTime=1 << 4</code> */
>     protected static final int MultiTime = 1 << 4;
> {code}
> after calling fix operation.
> And notice that the << in the doc is NOT allowed by html, thus will fail the 
> javadoc jar generation.
> should use &lt&lt instead.
> The expected correct result should be:
> {code:java}
>     /** Constant <code>MultiTime=1 &lt;&lt; 4</code> */
>     protected static final int MultiTime = 1 << 4;
> {code}
> -I think I can fix it, but I'm too tired today, tomorrow I will see if I can 
> get some time for the fix.-
> update: fix done at https://github.com/apache/maven-javadoc-plugin/pull/59



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

Reply via email to