summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2020-11-17 21:44:36 +0000
committerSteven Moreland <smoreland@google.com>2020-11-17 21:57:23 +0000
commit0029898a847d28abee46049ca6dd4d1188886e69 (patch)
treea37aee719f0d905e7b3cf0a9e3bc4875d9db78e5 /java/java_test.go
parent1af783fae74715bcf1a94733bd75b2e6cc688e8c (diff)
java link time error improve
Asked about error message including "against private API.Adjust sdk_version", which is a bit hard to parse due to missing space. Also tried to make error message less verbose, so that it is more clear what to do, and fixed a grammar mistake. Bug: N/A Test: N/A Change-Id: Ib9a30d86b5cb0e9b3b7d5576ecb9498a9b316042
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/java_test.go b/java/java_test.go
index 7f5198211..2dcf129cf 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -200,7 +200,7 @@ func TestJavaLinkType(t *testing.T) {
}
`)
- testJavaError(t, "Adjust sdk_version: property of the source or target module so that target module is built with the same or smaller API set than the source.", `
+ testJavaError(t, "consider adjusting sdk_version: OR platform_apis:", `
java_library {
name: "foo",
srcs: ["a.java"],
@@ -244,7 +244,7 @@ func TestJavaLinkType(t *testing.T) {
}
`)
- testJavaError(t, "Adjust sdk_version: property of the source or target module so that target module is built with the same or smaller API set than the source.", `
+ testJavaError(t, "consider adjusting sdk_version: OR platform_apis:", `
java_library {
name: "foo",
srcs: ["a.java"],