diff options
author | George Fraser <george@fivetran.com> | 2019-01-24 22:53:36 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-03-31 10:49:44 -0700 |
commit | 31e0469b9ce63d39f8a732b32ae1afbc2e8e9d37 (patch) | |
tree | 4fb6a323f47710b33b1b50ca1f749d50e15e6995 /src/main | |
parent | f00234f1bc0949e21527c189ce7ceb33438ec932 (diff) | |
download | java-language-server-31e0469b9ce63d39f8a732b32ae1afbc2e8e9d37.zip |
Demo how to re-use compiler
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/javacs/SourceFileManager.java | 2 |
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 |