Fixed errors in javac front-end's J2ObjCIncompatible stripper.
Change on 2017/01/03 by tball
@@ -26,7 +26,6 @@ import com.sun.tools.javac.tree.JCTree.JCFieldAccess;
import com.sun.tools.javac.tree.JCTree.JCIdent;
import com.sun.tools.javac.tree.JCTree.JCImport;
import com.sun.tools.javac.tree.JCTree.JCMethodDecl;
-import com.sun.tools.javac.tree.JCTree.JCMethodInvocation;
import com.sun.tools.javac.tree.JCTree.JCVariableDecl;
import com.sun.tools.javac.tree.TreeInfo;
import com.sun.tools.javac.tree.TreeScanner;
@@ -181,10 +180,8 @@ class JavacJ2ObjCIncompatibleStripper extends TreeScanner {
return ((JCIdent) name).getName().toString();
case MEMBER_SELECT:
return getFirstComponent(((JCFieldAccess) name).getExpression());
- case METHOD_INVOCATION:
- return getFirstComponent(((JCMethodInvocation) name).getMethodSelect());
default:
- throw new AssertionError("unexpected kind: " + name.getKind());
+ return "";
}
}
@@ -194,10 +191,8 @@ class JavacJ2ObjCIncompatibleStripper extends TreeScanner {
return ((JCIdent) name).getName().toString();
case MEMBER_SELECT:
return ((JCFieldAccess) name).getIdentifier().toString();
- case METHOD_INVOCATION:
- return getLastComponent(((JCMethodInvocation) name).getMethodSelect());
default:
- throw new AssertionError("unexpected kind: " + name.getKind());
+ return "";
}
}
