Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javadoc @link

Tags:

javadoc

I wrote two methods in class Util:

public static final <T> T[] copy1(T[] source) {...}
public static final <T> T[] copy2(T[] source) {...}

Javadoc for method copy2 includes:

{@link #copy1(Object[]) copy}

and as a test includes also:

{@link Integer#highestOneBit(int) highestOneBit}

When I click the highestOneBit link it works. When I click the copy link, it doesnt work correctly, it links to the Util class?! Java version 1.5.0_16.

like image 479
Gerard Avatar asked Sep 09 '25 22:09

Gerard


1 Answers

What happens when you link to copy(T[]) instead of copy(Object[])? On my machine, that works.

like image 81
Hank Gay Avatar answered Sep 13 '25 16:09

Hank Gay