Community
Participate
Working Groups
Build ID: 3.3 europa Steps To Reproduce: 1.Create a java file with a javadoc comment - @see NA (I agree that its not a healthy practice, but can not help for maintenance and enhancement projects) 2.Incluse j2ee classes in classpath (having a class or inner class with name 'NA') 3. Do an organize imports. 4. Based on @see javadoc comment an import statement is added, in the example below the file will not compile as inner class MediaSize$NA is imported unnecessaily. More information: Unwanted import line added: Example ----------------------------------- package com.xx.yy.ui.test; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.Locale; import javax.print.attribute.standard.MediaSize$NA; // added by eclipse when organize import is given import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Test{ /** *@return String *@see NA */ public final String getModuleName() { return ""; } }
Specific example: package test; import java.util.Date; import javax.print.attribute.standard.MediaSize$NA; public class Test { /** * @see NA */ public String test() { return new Date().toString(); } }
That's the expected behavior when Javadoc processing is enabled (see project properties > Java Compiler > Javadoc). *** This bug has been marked as a duplicate of bug 92821 ***
Thanks Markus Keller for your time and guaidance, It was raised due to lack of knowledge.