summaryrefslogtreecommitdiff
path: root/compilationTests
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2016-03-02 14:23:06 -0800
committerGeorge Mount <mount@google.com>2016-03-08 15:48:01 -0800
commitc0c1dab0b6254e4d27f18c37a72a9e7952e958a0 (patch)
tree3628adec5ad3dc260e30bed827b66b83a519bdf5 /compilationTests
parentbb4a033fcd5cd20e5be46ef8ead442dc7db2454d (diff)
downloaddata-binding-c0c1dab0b6254e4d27f18c37a72a9e7952e958a0.tar.gz
Support for java 8 method reference syntax.
Bug 26937350 Our event handling syntax is obj.method, where java 8 uses the syntax obj::method. This adds support for the java 8 syntax and adds a deprecation warning for the old syntax. Change-Id: Ideb0570c2646f674da031f642ed3369e8c5fcd3b
Diffstat (limited to 'compilationTests')
-rw-r--r--compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java b/compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
index 68c34245..a7aa9d6b 100644
--- a/compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
+++ b/compilationTests/src/test/java/android/databinding/compilationTest/SimpleCompilationTest.java
@@ -177,9 +177,9 @@ public class SimpleCompilationTest extends BaseCompilationTest {
"/app/src/main/res/layout/broken.xml",
"myVar.length())",
String.format(ErrorMessages.SYNTAX_ERROR,
- "extraneous input ')' expecting {<EOF>, ',', '.', '[', '+', '-', '*', '/', "
- + "'%', '<<', '>>>', '>>', '<=', '>=', '>', '<', 'instanceof', "
- + "'==', '!=', '&', '^', '|', '&&', '||', '?', '??'}"));
+ "extraneous input ')' expecting {<EOF>, ',', '.', '::', '[', '+', '-', " +
+ "'*', '/', '%', '<<', '>>>', '>>', '<=', '>=', '>', '<', " +
+ "'instanceof', '==', '!=', '&', '^', '|', '&&', '||', '?', '??'}"));
}
@Test
@@ -188,9 +188,9 @@ public class SimpleCompilationTest extends BaseCompilationTest {
"/app/src/main/res/layout/broken.xml",
"new String()",
String.format(ErrorMessages.SYNTAX_ERROR,
- "mismatched input 'String' expecting {<EOF>, ',', '.', '[', '+', '-', '*', "
- + "'/', '%', '<<', '>>>', '>>', '<=', '>=', '>', '<', 'instanceof',"
- + " '==', '!=', '&', '^', '|', '&&', '||', '?', '??'}"));
+ "mismatched input 'String' expecting {<EOF>, ',', '.', '::', '[', '+', " +
+ "'-', '*', '/', '%', '<<', '>>>', '>>', '<=', '>=', '>', '<', " +
+ "'instanceof', '==', '!=', '&', '^', '|', '&&', '||', '?', '??'}"));
}
@Test