mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
6551367: javadoc throws ClassCastException when an @link tries to reference constructor
Reviewed-by: jjg, mcimadamore
This commit is contained in:
parent
4e9ee94a4d
commit
564807c643
3 changed files with 62 additions and 1 deletions
|
@ -850,6 +850,12 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
|
|||
String[] paramTypes, Set<ClassDocImpl> searched) {
|
||||
//### Note that this search is not necessarily what the compiler would do!
|
||||
|
||||
Names names = tsym.name.table.names;
|
||||
// do not match constructors
|
||||
if (names.init.contentEquals(methodName)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
ClassDocImpl cdi;
|
||||
MethodDocImpl mdi;
|
||||
|
||||
|
@ -876,7 +882,6 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
|
|||
*---------------------------------*/
|
||||
|
||||
// search current class
|
||||
Names names = tsym.name.table.names;
|
||||
Scope.Entry e = tsym.members().lookup(names.fromString(methodName));
|
||||
|
||||
//### Using modifier filter here isn't really correct,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue