langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/ClassFinder.java
equal
deleted
inserted
replaced
44 |
44 |
45 import static com.sun.tools.javac.code.Flags.*; |
45 import static com.sun.tools.javac.code.Flags.*; |
46 import static com.sun.tools.javac.code.Kinds.Kind.*; |
46 import static com.sun.tools.javac.code.Kinds.Kind.*; |
47 |
47 |
48 import static com.sun.tools.javac.main.Option.*; |
48 import static com.sun.tools.javac.main.Option.*; |
|
49 import com.sun.tools.javac.util.Dependencies.CompletionCause; |
49 |
50 |
50 /** |
51 /** |
51 * This class provides operations to locate class definitions |
52 * This class provides operations to locate class definitions |
52 * from the source and class files on the paths provided to javac. |
53 * from the source and class files on the paths provided to javac. |
53 * |
54 * |
184 */ |
185 */ |
185 private void complete(Symbol sym) throws CompletionFailure { |
186 private void complete(Symbol sym) throws CompletionFailure { |
186 if (sym.kind == TYP) { |
187 if (sym.kind == TYP) { |
187 try { |
188 try { |
188 ClassSymbol c = (ClassSymbol) sym; |
189 ClassSymbol c = (ClassSymbol) sym; |
189 dependencies.push(c); |
190 dependencies.push(c, CompletionCause.CLASS_READER); |
190 c.members_field = new Scope.ErrorScope(c); // make sure it's always defined |
191 c.members_field = new Scope.ErrorScope(c); // make sure it's always defined |
191 annotate.enterStart(); |
192 annotate.enterStart(); |
192 try { |
193 try { |
193 completeOwners(c.owner); |
194 completeOwners(c.owner); |
194 completeEnclosing(c); |
195 completeEnclosing(c); |