Community
Participate
Working Groups
Build ID: I20070601-1539 Steps To Reproduce: Organize imports removes static imports that are only used in the Javadoc. To reproduce this, add the import "import static java.lang.Math.E;", then add {@link #E} in the javadoc. Run Organize Imports and it will be removed, and the warning "Javadoc: E cannot be resolved or is not a field" will appear.
As far as I know, you can't use statically imported references in Javadoc. When the following code is send to Javadoc.exe, you get an warning: 'warning - Tag @link: can't find E in p.E01' It seems that our compiler accepts this, but it shouldn't. I filed bug 194747. package p; import static java.lang.Math.E; public class E01 { /** * {@link #E} */ public void foo() { } }