changeset 1986:9c0e192c0926

8013384: Potential infinite loop in javadoc Reviewed-by: darcy
author jjg
date Thu, 29 Aug 2013 12:03:28 -0700
parents b0b25c1f6cbd
children 96b6865eda94
files src/share/classes/com/sun/tools/javadoc/ClassDocImpl.java
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
+                 */
             }
         }
     }