File tree Expand file tree Collapse file tree
main/java/org/sonar/java/resolve Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public List<JavaSymbol> lookup(String name) {
125125 }
126126
127127 // site is a type, try to find a matching type or field
128- if ((site .kind & JavaSymbol .TYP ) != 0 ) {
128+ if ((site .kind & JavaSymbol .TYP ) != 0 && site . kind < JavaSymbol . ERRONEOUS ) {
129129 List <JavaSymbol > resolved = ((JavaSymbol .TypeJavaSymbol ) site ).members ().lookup (name );
130130 for (JavaSymbol symbol : resolved ) {
131131 // TODO check accessibility
Original file line number Diff line number Diff line change 1616import static java .net .HttpURLConnection .HTTP_OK ;
1717import static java .util .Collections .reverse ;
1818import static java .util .Collections .sort ;; // extra empty statements should be ignored
19-
19+ import static java . util . Collections . FOO .*;
2020@ SuppressWarnings ("all" )
2121class ImportResolution {
2222 private NotImplementedTreeImpl annotationTree ;
You can’t perform that action at this time.
0 commit comments