# HG changeset patch # User jjg # Date 1377803008 25200 # Node ID 9c0e192c09266e57208922c1ec200304dd0d25f6 # Parent b0b25c1f6cbd9c146522fc6c846f211fa3edbbdc 8013384: Potential infinite loop in javadoc Reviewed-by: darcy diff -r b0b25c1f6cbd -r 9c0e192c0926 src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java --- a/src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java Thu Aug 29 11:57:52 2013 -0700 +++ b/src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java Thu Aug 29 12:03:28 2013 -0700 @@ -128,7 +128,14 @@ try { return clazz.flags(); } 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. + */ } } }