diff options
author | George Fraser <george@fivetran.com> | 2018-12-28 23:31:51 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-12-28 23:31:51 -0800 |
commit | 28dfeda22556ecb5c102c26da1e1ce1f3dfd09e1 (patch) | |
tree | 435929dd07c6eb69989f14af5f78f891179e29b0 /src | |
parent | b7681a1e072c0272a2b86aef1600d31207b0268e (diff) | |
download | java-language-server-28dfeda22556ecb5c102c26da1e1ce1f3dfd09e1.zip |
Perf todo
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/javacs/ClassSource.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/javacs/ClassSource.java b/src/main/java/org/javacs/ClassSource.java index 8e05e32..cbf6bbd 100644 --- a/src/main/java/org/javacs/ClassSource.java +++ b/src/main/java/org/javacs/ClassSource.java @@ -14,6 +14,9 @@ interface ClassSource { static final Logger LOG = Logger.getLogger("main"); static final Set<String> failedToLoad = new HashSet<>(); + // TODO figure this out by directly reading the class name + // https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html + // https://hg.openjdk.java.net/jdk/jdk11/file/1ddf9a99e4ad/src/jdk.jdeps/share/classes/com/sun/tools/classfile/ClassFile.java default boolean isPublic(String className) { if (failedToLoad.contains(className)) return false; try { |