Skip to content

Wrong list elements generated in Javadoc, in some cases where a line contains an @ #3631

Description

@fbricon

I noticed an issue with the javadoc of java.lang.annotation.ElementType. It can be narrowed down to an @thing behind followed by another @thingy on the same line, this generates wrong list elements.

    /**
     * Some javadoc and then ...
     * @jls 9.6.4.1 @Target
     */
    public void foo(){}
Image

The @Target in ElementType should be rendered as a link to the jls spec, in this case : https://docs.oracle.com/javase/specs/jls/se25/html/jls-9.html#jls-9.6.4.1

Not sure what should happen if @jls 9.6.4.1 @Target is present on a non JDK class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions