Skip to content

Wrong javadoc parsing of {@code ...} containing } #4598

@fbricon

Description

@fbricon

Take this example, extracted from org.springframework.util.AntPathMatcher :

/**
* <p>The mapping matches URLs using the following rules:<br>
* <ul>
* <li>{@code {spring:[a-z]+}} matches the regexp {@code [a-z]+} as a path variable named "spring"</li>
* <li>{@code com/{filename:\\w+}.jsp} will match {@code com/test.jsp} and assign the value {@code test}
* to the {@code filename} variable</li>
* </ul>
*/
public class hello {

The javadoc renders the last } in the {@code ...} blocks

Image

Tested with Eclipse Version: 2025-09 (4.37.0), Build id: 20250905-1456

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions