summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-24 22:53:36 -0800
committerGeorge Fraser <george@fivetran.com>2019-03-31 10:49:44 -0700
commit31e0469b9ce63d39f8a732b32ae1afbc2e8e9d37 (patch)
tree4fb6a323f47710b33b1b50ca1f749d50e15e6995 /src/main
parentf00234f1bc0949e21527c189ce7ceb33438ec932 (diff)
downloadjava-language-server-31e0469b9ce63d39f8a732b32ae1afbc2e8e9d37.zip
Demo how to re-use compiler
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/javacs/SourceFileManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/javacs/SourceFileManager.java b/src/main/java/org/javacs/SourceFileManager.java
index dfef972..d630988 100644
--- a/src/main/java/org/javacs/SourceFileManager.java
+++ b/src/main/java/org/javacs/SourceFileManager.java
@@ -22,6 +22,8 @@ class SourceFileManager extends ForwardingJavaFileManager<StandardJavaFileManage
LOG.warning(error.getMessage(null));
}
+ // TODO if .class files get moved around, this could become wrong
+ // class path includes generated .class files, so this can definitely happen
private final LruCache<String, Iterable<JavaFileObject>> cacheClassPath = new LruCache<>(1000, this::listClassPath);
@Override