Alex Rivera | Logout

@link to another package inside of a package-info.java

Asked 2012-07-04T05:14:26.720
17

Is there any way to link from an package-info.java to another package outside of this package (in the same Project)?

If I try to do this in java 7 I always get:

warning - Tag @link: reference not found:
Edit
Report

1 Answer

-3

you have to import the used Package so javadoc knows the the namespace you are refering to.

package-info.java should look link this:

import package.subpackage.ClassnameYouWantToLink;
/**
* {@link ClassnameYouWantToLink}
*/

if you don't want to import the package you need the full quallified package-Name infront of the ClassName:

/**
* {@link package.subpackage.ClassnameYouWantToLink}
*/
answered 2012-07-11T14:20:33.377

Your Answer