Skip to content

Javadoc/Markdown incorrectly parsing if @annotation exists in {@code} and {@literal} #5055

@subyssurendran666

Description

@subyssurendran666
 /**
   * Example showing formatter bug with {@code @} in pre blocks.
   *
   * <pre>
   * {@code
   * @MyAnnotation
   * public class Example {
   *
   *     @AnotherAnnotation
   *     private String field;
   * }
   * }
   * </pre>
   */
Image

Assumption: Annotation inside the inline tag may break the parsing. This should be test in the @snippet, @literal, @link and @linkplain, {@docroot} tags.

This causing trouble in the formatter issue #4874 .

Metadata

Metadata

Labels

bugSomething isn't workingjavadoc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions