--- a/langtools/test/jdk/jshell/SimpleRegressionTest.java Mon Feb 06 15:57:35 2017 +0100
+++ b/langtools/test/jdk/jshell/SimpleRegressionTest.java Mon Feb 06 09:00:02 2017 -0800
@@ -22,7 +22,7 @@
*/
/*
- * @test 8130450 8158906 8154374 8166400 8171892
+ * @test 8130450 8158906 8154374 8166400 8171892 8173848
* @summary simple regression test
* @build KullaTesting TestingInputStream
* @run testng SimpleRegressionTest
@@ -76,6 +76,15 @@
assertEval("c;", "600");
}
+ public void testLessThanParsing() {
+ assertEval("int x = 3;", "3");
+ assertEval("int y = 4;", "4");
+ assertEval("int z = 5;", "5");
+ assertEval("x < y", "true");
+ assertEval("x < y;", "true");
+ assertEval("x < y && y < z", "true");
+ }
+
public void testNotStmtCannotResolve() {
assertDeclareFail("dfasder;", new ExpectedDiagnostic("compiler.err.cant.resolve.location", 0, 7, 0, -1, -1, Diagnostic.Kind.ERROR));
}