summaryrefslogtreecommitdiff
path: root/src/main/java/org/javacs/CompileFile.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/javacs/CompileFile.java')
-rw-r--r--src/main/java/org/javacs/CompileFile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/javacs/CompileFile.java b/src/main/java/org/javacs/CompileFile.java
index 7437864..35f9cd1 100644
--- a/src/main/java/org/javacs/CompileFile.java
+++ b/src/main/java/org/javacs/CompileFile.java
@@ -112,7 +112,7 @@ public class CompileFile {
}
}
// Look at imports in other classes to help us guess how to fix imports
- var sourcePathImports = Parser.existingImports(parent.sourcePath);
+ var sourcePathImports = Parser.existingImports(parent.allJavaFiles.get());
var classes = new HashSet<String>();
classes.addAll(parent.jdkClasses.classes());
classes.addAll(parent.classPathClasses.classes());