Community
Participate
Working Groups
I20040413 I documented an unchecked exception like: * @throws Throwable an unspecified unchecked exception if the object This gives me a Javadoc warning: Throwable is not declared
Don't you have a matching thrown exception in method signature ?
No, but check the two examples where the warnings are once reported and once not: org.eclipse.text Assert.isNotNull: * @exception Throwable an unspecified unchecked exception if the object * is <code>null</code> */ public static void isNotNull(Object object) { ==> a warning is genereted org.eclipse.text: FindReplaceDocumentAdapter: * @throws PatternSyntaxException if a regular expression has invalid syntax */ private IRegion findReplace(FindReplaceOperationCode operationCode, int startOffset, String findString, String replaceText, boolean forwardSearch, boolean caseSensitive, boolean wholeWord, boolean regExSearch) throws BadLocationException { ==> no warning gets generated
PatternSyntaxException is an unchecked exception. Therefore we tolerate it to be undeclared, as per spec, you don't have to have to declare them, but still could want to document them.
Ok to close ?
yes