8013384: Potential infinite loop in javadoc

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2013-08-29 12:03:28 -07:00
parent 445a49ecb6
commit 50d89c0ca7

View file

@ -128,7 +128,14 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
try { try {
return clazz.flags(); return clazz.flags();
} catch (CompletionFailure ex) { } catch (CompletionFailure ex) {
// quietly ignore completion failures /* Quietly ignore completion failures.
* Note that a CompletionFailure can only
* occur as a result of calling complete(),
* which will always remove the current
* completer, leaving it to be null or
* follow-up completer. Thus the loop
* is guaranteed to eventually terminate.
*/
} }
} }
} }