mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8013384: Potential infinite loop in javadoc
Reviewed-by: darcy
This commit is contained in:
parent
445a49ecb6
commit
50d89c0ca7
1 changed files with 8 additions and 1 deletions
|
@ -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.
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue