1

I have defined a Javadoc comment as follow:

/**
 * bla bla bla {@link #PathAction} bla bla bla...
 * 
 * @author andreas
 *
 * @param <T>
 */

when moving the mouse on the object CustomPath in the java code I can see the following:

enter image description here

When clicking on the PathAction Link in the description , nothing happens. I expected that I was redirected to the PathAction Object.

Is this behaviour default or I am doing something wrong. Is there a way that I can be redirected to the PathAction Object, or how can I access the javadoc of PathAction. My goal is to read through the code with Javadoc comments.

any suggestions ?

mcfly soft
  • 11,289
  • 26
  • 98
  • 202

2 Answers2

4

Remove the hash symbol in front of the class name. This is normally used when linking to methods. Also it would be better to use the fully qualified classname:

/**
 * bla bla bla {@link full.name.of.PathAction} bla bla bla...
 * 
 * @author andreas
 *
 * @param <T>
 */

Relevant documentation: http://docs.oracle.com/javase/8/docs/technotes/tools/windows/javadoc.html#CHDDIECH:

{@link package.class#member label}

M A
  • 71,713
  • 13
  • 134
  • 174
1

Looks like you might be missing the package name?

Check this out: https://stackoverflow.com/a/7287411/983387

Community
  • 1
  • 1
gsaslis
  • 3,066
  • 2
  • 26
  • 32