Community
Participate
Working Groups
If you turn on warnings for missing javadoc tags, the following code will erroneously say that you haven't added a tag for @throws MyException. To make this happen, you must have generics and both classes must be inner classes. The order doesn't matter. It works just as poorly whether you have Test1 an interface or a class. Putting a javadoc comment on MyException doesn't help. I'm using Eclipse 3.2RC6 (I20060526-0010) class TestClass<T> { static class Test1 { /** * A simple method that demonstrates tag problems * * @return a string * @throws MyException * if something goes wrong */ public String getString() throws MyException { throw new MyException(); } } static class MyException extends Exception { private static final long serialVersionUID = 1L; } }
Need to use erasure while verifying Javadoc reference types @throws tags references...
Created attachment 44630 [details] Proposed patch
Fix is trivial => perhaps may be backported in 3.2.1 stream
*** Bug 147065 has been marked as a duplicate of this bug. ***
Patch released for 3.3 M1 in HEAD stream
Released for 3.2.1 in TARGET_321 branch
Verified for 3.3 M1 using build I20060804-0010.
Verified for 3.2.1 using build M20060908-1655.