8013384: Potential infinite loop in javadoc
authorjjg
Thu, 29 Aug 2013 12:03:28 -0700
changeset 19669 03e91f2de12c
parent 19668 6b6009d00484
child 19670 197392292aad
8013384: Potential infinite loop in javadoc Reviewed-by: darcy
langtools/src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java
--- a/langtools/src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java	Thu Aug 29 11:57:52 2013 -0700
+++ b/langtools/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.
+                 */
             }
         }
     }