Failed

org.eclipse.jdt.core.tests.compiler.regression.LambdaExpressionsTest.testBug521818 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 4 builds (Since #6 )
Took 0.96 sec.

Error Message

testBug521818 - Eclipse/Javac standard output mismatch.
----------- Expected ------------
Baz\n
D\n
Bar
------------ but was ------------

--------- Difference is ----------
 expected:<[Baz\n
D\n
Bar]> but was:<[]>

Stacktrace

junit.framework.ComparisonFailure: testBug521818 - Eclipse/Javac standard output mismatch.
----------- Expected ------------
Baz\n
D\n
Bar
------------ but was ------------

--------- Difference is ----------
 expected:<[Baz\n
D\n
Bar]> but was:<[]>
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:260)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:236)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runJavac(AbstractRegressionTest.java:2068)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2814)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2539)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest(AbstractRegressionTest.java:1396)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest(AbstractRegressionTest.java:1393)
	at org.eclipse.jdt.core.tests.compiler.regression.LambdaExpressionsTest.testBug521818(LambdaExpressionsTest.java:6652)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.LambdaExpressionsTest#testBug521818 - 1.8
test/Main.java [
package test;
class C {}
class D {
	<T extends C & Runnable> D(int i, T t) {		System.out.println("D");
}
}
interface Goo {
    <T extends C & Runnable> String m(T p);
}
class A {
    public static <K extends Runnable> String bar(K a) {
		System.out.println("Bar");
       return null;
    }
    public static <K extends Runnable> D baz(int i, K a) {
		System.out.println("Baz");
       return null;
    }
}
interface Foo<Z extends C & Runnable> {
	D get(int i, Z z);
}
public class Main  {
    public static void main(String[] args) {
    	Foo<? extends C> h = A::baz;
    	h.get(0,  null);
    	Foo<? extends C> h2 = D::new;
    	h2.get(0,  null);
    	Goo g = A::bar;
    	g.m(null);
    } 
}
]


Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt

Standard Error

----------------------------------------