Index: pkg/analysis_server/tool/spec/codegen_java.dart |
diff --git a/pkg/analysis_server/tool/spec/codegen_java.dart b/pkg/analysis_server/tool/spec/codegen_java.dart |
index f464eeec52cc3e210193505fe678231da0854b8b..2f881d31df1e82a18dc8e49ea41ed908d8790f6a 100644 |
--- a/pkg/analysis_server/tool/spec/codegen_java.dart |
+++ b/pkg/analysis_server/tool/spec/codegen_java.dart |
@@ -102,6 +102,8 @@ class CodegenJavaVisitor extends HierarchicalApiVisitor with CodeGenerator { |
return 'List<${javaType(type.itemType)}>'; |
} else if (type is TypeMap) { |
return 'Map<${javaType(type.keyType)}, ${javaType(type.valueType)}>'; |
+ } else if (type is TypeUnion) { |
+ return 'Object'; |
} else { |
throw new Exception("Can't make type buildable"); |
} |