- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    24, 25
- 
    None
- 
        b13
                    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>"
- csr for
- 
                    JDK-8348569 SnippetTaglet should report an error if provided ambiguous links -           
- Closed
 
-         
- relates to
- 
                    JDK-8346128 Comparison build fails due to difference in LabelTarget.html -           
- Resolved
 
-         
- links to
- 
                     Commit(master)
        openjdk/jdk/8323ddfe Commit(master)
        openjdk/jdk/8323ddfe
- 
                     Review(master)
        openjdk/jdk/23328 Review(master)
        openjdk/jdk/23328