Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorssankaran2014-03-06 15:33:21 +0000
committerssankaran2014-03-06 15:33:21 +0000
commit3e19fda2df1bc113dba7573b5ff115a5be6c5c02 (patch)
treefeb9d171009c9d71d841e9318180a7c5597e62eb
parentdc8432714c531dac7745dcfdd279ab5514ddd998 (diff)
downloadeclipse.jdt.core-3e19fda2df1bc113dba7573b5ff115a5be6c5c02.tar.gz
eclipse.jdt.core-3e19fda2df1bc113dba7573b5ff115a5be6c5c02.tar.xz
eclipse.jdt.core-3e19fda2df1bc113dba7573b5ff115a5be6c5c02.zip
Disabled test for Bug 429759 - [1.8][compiler] Lambda expression's
signature matching error
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java23
1 files changed, 23 insertions, 0 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 c14ea30e50..cb4c07696a 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
@@ -3620,6 +3620,29 @@ public void _test429763() {
},
"");
}
+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=429759, [1.8][compiler] Lambda expression's signature matching error
+public void _test429759() {
+ this.runConformTest(
+ new String[] {
+ "X.java",
+ "import java.util.function.Function;\n" +
+ "import java.util.function.Supplier;\n" +
+ "public class X {\n" +
+ " public static void main(String[] args) {\n" +
+ " final int i = new Test<Integer>().test(\"\", (String s) -> 1);\n" +
+ " }\n" +
+ " static class Test<R> {\n" +
+ " <T> R test(T t, Supplier<R> s) {\n" +
+ " return s.get();\n" +
+ " }\n" +
+ " <T> R test(T t, Function<T, R> f) {\n" +
+ " return f.apply(t);\n" +
+ " }\n" +
+ " }\n" +
+ "}\n"
+ },
+ "");
+}
public static Class testClass() {
return LambdaExpressionsTest.class;
}

Back to the top