diff options
author | Jay Arthanareeswaran | 2020-09-16 03:59:22 +0000 |
---|---|---|
committer | Jay Arthanareeswaran | 2020-09-16 03:59:22 +0000 |
commit | 27b53ca171a19db4794ec310f4e339e876ea495f (patch) | |
tree | 3b12fd95b0afb9a5401d836d115751d13588c5c0 /org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java | |
parent | a8b03f929def2f6a9f479a198856e34e6cd4af34 (diff) | |
parent | 0a27063a3e6012ba850fd756f98be50be0375dc3 (diff) | |
download | eclipse.jdt.core-27b53ca171a19db4794ec310f4e339e876ea495f.tar.gz eclipse.jdt.core-27b53ca171a19db4794ec310f4e339e876ea495f.tar.xz eclipse.jdt.core-27b53ca171a19db4794ec310f4e339e876ea495f.zip |
Merge remote-tracking branch 'origin/BETA_JAVA15'
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java')
-rw-r--r-- | org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java index 1f430b4616..7a94b5ec82 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2018 IBM Corporation and others. + * Copyright (c) 2011, 2020 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -39,7 +39,7 @@ import junit.framework.Test; public class LambdaExpressionsTest extends AbstractRegressionTest { static { -// TESTS_NAMES = new String[] { "testBug540520"}; +// TESTS_NAMES = new String[] { "test056"}; // TESTS_NUMBERS = new int[] { 50 }; // TESTS_RANGE = new int[] { 11, -1 }; } @@ -1605,6 +1605,7 @@ public void test055() { ""); } public void test056() { + String expected = isJRE15Plus ? "Cannot invoke \"Object.getClass()\" because \"x\" is null" : "null"; this.runConformTest( new String[] { "X.java", @@ -1626,7 +1627,7 @@ public void test056() { " }\n" + "}\n" }, - "null"); + expected); } //https://bugs.eclipse.org/bugs/show_bug.cgi?id=410114, [1.8] CCE when trying to parse method reference expression with inappropriate type arguments public void test057() { |