mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac ast index: do not collect cast info for cast to array
This commit is contained in:
+4
-1
@@ -326,7 +326,10 @@ final class JavacReferenceCollectorListener implements TaskListener {
|
||||
|
||||
//TODO
|
||||
private static Element getElementIfJdkUnder8(Tree tree) {
|
||||
if (tree == null || tree instanceof PrimitiveTypeTree) return null;
|
||||
if (tree == null || tree instanceof PrimitiveTypeTree || tree instanceof ArrayTypeTree) return null;
|
||||
if (tree instanceof ParameterizedTypeTree) {
|
||||
return getElementIfJdkUnder8(((ParameterizedTypeTree)tree).getType());
|
||||
}
|
||||
Field symField;
|
||||
try {
|
||||
//should be the same to com.sun.tools.javac.tree.TreeInfo.symbolForImpl() since com.sun.source.util.Trees.getElement() works improperly under jdk 6-7
|
||||
|
||||
Reference in New Issue
Block a user