Summary: | [javadoc] Method throwing subclass of RuntimeException requires Javadoc tag, even when already there | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Nils Kilden-Pedersen <nilskp+eclipse> |
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.2 | ||
Target Milestone: | 3.2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Nils Kilden-Pedersen
2006-06-14 10:49:39 EDT
I cannot reproduce with following simple test case: public class Test { /** * @throws MyException */ public void foo() throws MyException { } } class MyException extends RuntimeException {} Even with "Missing Javadoc tags" preference set to "Warning", I do not get any compiler warning. Please provide your complete test case, build ID, compiler compliance settings, JDKs, etc. and reopen when available, thanks Ok, it seems to be a little more obscure than I originally thought. It seems to be related to a combination of inner classes and generics. This example gives me a warning: public class MyClass<T> { public static final class MyRuntimeException extends RuntimeException {} /** * Some comment. * @throws MyRuntimeException */ public void myMethod() throws MyRuntimeException { return; } } Thanks for the feedback. Obviously a duplicate of bug 145007, nothing to deal with RuntimeException but just a verification which fails with generics... *** This bug has been marked as a duplicate of 145007 *** |