--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/model/JavacElements.java Fri Mar 09 11:36:12 2018 +0800
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/model/JavacElements.java Fri Mar 09 09:42:10 2018 +0100
@@ -255,7 +255,8 @@
name.equals(sym.getQualifiedName()))
? clazz.cast(sym)
: null;
- } catch (CompletionFailure e) {
+ } catch (CompletionFailure cf) {
+ cf.dcfh.handleAPICompletionFailure(cf);
return null;
}
}
@@ -442,7 +443,7 @@
@DefinedBy(Api.LANGUAGE_MODEL)
public boolean isDeprecated(Element e) {
Symbol sym = cast(Symbol.class, e);
- sym.complete();
+ sym.apiComplete();
return sym.isDeprecated();
}