eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Incorrect Javadoc content when mixing traditional array with varargs

Open
#3,849 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

Have a code like below:

```
/**
* {@link Foo#ma}
*/
public class Foo {
public static void main(String[] ... args) {}
}
```

Invoking code completion after #ma in the Javadoc does bring up a proposal - Foo#main(String[]...)
However, the HTML we see on the Javadoc view or hover does not produce clickable hyperlink. In fact, even the Open Declaration on the editor doesn't seem to work. If I replace the `...` with `[]`, then things are fine. Similar problem can be observed with markdown as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.