WOW! I was *just* writing an email about the very same problem, but with a slightly different spin...
My javadoc is referencing the Character class (in java.lang), so no import was suggested. I too got the "class or package not found" error. I discovered that I need to explicitly import the class (see http://java.sun.com/j2se/1.3/docs/tooldocs/win32/javadoc.html#howaclassmustb ereferenced for reasons why) to make the javadoc error go away (as Cedric explained, simply fully-qualifying the class doesn't work). The problem is that whenever I do a Layout Code now, the import optimization removes my import of the java.lang.Character class (necessary for javadoc only). I'd love for IDEA to be smart enough to not remove imported classes that, while they aren't needed for the code (e.g. classes in java.lang), ARE needed for @link tags in Javadoc. thanks, chris > -----Original Message----- > From: Cedric ROUVRAIS [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 25, 2002 10:17 AM > To: [EMAIL PROTECTED] > Subject: [Eap-list] Java Doc links > > > I've come accross this small defect: > > Within the java doc of any class, if i create a link to a > class for that i > haven't put in the import line IDEA suggests the right class: > com.sdk.tibco.MDefaultApp for exemple. > > This would occur i write: {@link MDefaultApp MDefaultApp} > > If i accept the proposition than IDEA does the following: > > {@link com.sdk.tibco.MDefaultApp MDefaultApp} > > when i run the javadoc this link generates an error: class or > package not > found. > > Now if i add the line: > > import com.sdk.tibco.MDefaultApp > > and change the link to > > {@link MDefaultApp MDefaultApp} > > everything works just fine! > > > a++ Cedric > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list > _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
