langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/ClassFinder.java
equal
deleted
inserted
replaced
56 |
56 |
57 import static com.sun.tools.javac.code.Flags.*; |
57 import static com.sun.tools.javac.code.Flags.*; |
58 import static com.sun.tools.javac.code.Kinds.Kind.*; |
58 import static com.sun.tools.javac.code.Kinds.Kind.*; |
59 |
59 |
60 import static com.sun.tools.javac.main.Option.*; |
60 import static com.sun.tools.javac.main.Option.*; |
|
61 import com.sun.tools.javac.util.Dependencies.CompletionCause; |
61 |
62 |
62 /** |
63 /** |
63 * This class provides operations to locate class definitions |
64 * This class provides operations to locate class definitions |
64 * from the source and class files on the paths provided to javac. |
65 * from the source and class files on the paths provided to javac. |
65 * |
66 * |
268 */ |
269 */ |
269 private void complete(Symbol sym) throws CompletionFailure { |
270 private void complete(Symbol sym) throws CompletionFailure { |
270 if (sym.kind == TYP) { |
271 if (sym.kind == TYP) { |
271 try { |
272 try { |
272 ClassSymbol c = (ClassSymbol) sym; |
273 ClassSymbol c = (ClassSymbol) sym; |
273 dependencies.push(c); |
274 dependencies.push(c, CompletionCause.CLASS_READER); |
274 c.members_field = new Scope.ErrorScope(c); // make sure it's always defined |
275 c.members_field = new Scope.ErrorScope(c); // make sure it's always defined |
275 annotate.enterStart(); |
276 annotate.enterStart(); |
276 try { |
277 try { |
277 completeOwners(c.owner); |
278 completeOwners(c.owner); |
278 completeEnclosing(c); |
279 completeEnclosing(c); |