Javadoc @link


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.

Best Answer

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