Validate upfront that an interface is compatible with our Java backend,

emit diagnostics if it is not. Also cleans up all other error messages to
clearly indicate an error condition.

Bug: 30876839
Change-Id: I18bcd723107ab93abcad38c976f3c38dda60a743
diff --git a/VectorType.cpp b/VectorType.cpp
index ed4ddb7..44c7e59 100644
--- a/VectorType.cpp
+++ b/VectorType.cpp
@@ -179,5 +179,9 @@
     return OK;
 }
 
+bool VectorType::isJavaCompatible() const {
+    return mElementType->isJavaCompatible();
+}
+
 }  // namespace android