-
Bug
-
Resolution: Unresolved
-
P3
-
24, 25
-
None
Consider code like:
```
interface One {
/**
* {@code One obj1}
* {@snippet lang = java:
* // @link substring="ab" target="One#ab" :
* obj1.ab(a()); // @link substring="a" target="#a"
*} class comment
*/
void start();
int a();
void with();
void ab(int i);
}
```
The "a" in "ab" matches for two regexes, this creates ambiguity, which is resolved at random.
An error should be reported to inform users about this, something like "error: ambiguous link in <location>"
```
interface One {
/**
* {@code One obj1}
* {@snippet lang = java:
* // @link substring="ab" target="One#ab" :
* obj1.ab(a()); // @link substring="a" target="#a"
*} class comment
*/
void start();
int a();
void with();
void ab(int i);
}
```
The "a" in "ab" matches for two regexes, this creates ambiguity, which is resolved at random.
An error should be reported to inform users about this, something like "error: ambiguous link in <location>"
- relates to
-
JDK-8346128 Comparison build fails due to difference in LabelTarget.html
- Resolved