How to reference an inner class with @link?

Hi,

Let's assume we have a class Test with an inner class namned InnerTest. If I want to put a @link to a method in InnerTest in another java-file, what do I write?

To reference a method in Test, I write:

{@link com.company.Test#method}

My first thought when referencing the inner class' method was to just write:

{@link com.company.Test.InnerTest#method}

but this doesn't seem to be the correct way.

Any help is greatly appreciated! Thank you in advance.

[507 byte] By [d93mn] at [2007-9-27 19:13:42]
# 1

> {@link com.company.Test.InnerTest#method}

Actuallt when I re-read

http://java.sun.com/j2se/javadoc/writingdoccomments/

is seems to me that I'm doing this correctly, strangely enough. Hmm, perhaps I'm doing something else wrong since I'm still getting warnings when generating the JavaDoc.

d93mn at 2007-7-6 21:42:16 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

You're calling the method in the inner class the right way.

You're probably experiencing bugs with links.

I don't know what version you're using, but 1.4.0 and

1.4.1 have some severe bugs. Please see another

thread in this forum entitled:

"Some {@link} tags do not seem to generate hyperlinks"

-Doug Kramer

Javadoc team

dkramer at 2007-7-6 21:42:16 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...