src/jdk.compiler/share/classes/com/sun/tools/javac/model/JavacElements.java
changeset 49197 cc2673fa8c20
parent 48945 6e6c777a37a2
child 49917 1871c5d07caf
--- 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();
     }