Failed

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

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

Error Message

test476859a - Eclipse/Javac standard output mismatch.
----------- Expected ------------
private static java.lang.reflect.Method Test.lambda$0(java.lang.Void)\n
private java.lang.reflect.Method AnotherClass.lambda$0(java.lang.Void)
------------ but was ------------
private static java.lang.reflect.Method Test.lambda$main$0(java.lang.Void)\n
private java.lang.reflect.Method AnotherClass.lambda$foo$0(java.lang.Void)
--------- Difference is ----------
 expected:<....Method Test.lambda$[0(java.lang.Void)\n
private java.lang.reflect.Method AnotherClass.lambda]$0(java.lang.Void)> but was:<....Method Test.lambda$[main$0(java.lang.Void)\n
private java.lang.reflect.Method AnotherClass.lambda$foo]$0(java.lang.Void)>

Stacktrace

junit.framework.ComparisonFailure: test476859a - Eclipse/Javac standard output mismatch.
----------- Expected ------------
private static java.lang.reflect.Method Test.lambda$0(java.lang.Void)\n
private java.lang.reflect.Method AnotherClass.lambda$0(java.lang.Void)
------------ but was ------------
private static java.lang.reflect.Method Test.lambda$main$0(java.lang.Void)\n
private java.lang.reflect.Method AnotherClass.lambda$foo$0(java.lang.Void)
--------- Difference is ----------
 expected:<....Method Test.lambda$[0(java.lang.Void)\n
private java.lang.reflect.Method AnotherClass.lambda]$0(java.lang.Void)> but was:<....Method Test.lambda$[main$0(java.lang.Void)\n
private java.lang.reflect.Method AnotherClass.lambda$foo]$0(java.lang.Void)>
	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.test476859a(LambdaExpressionsTest.java:6173)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.LambdaExpressionsTest#test476859a - 1.8
Test.java [
import java.lang.reflect.Method;
import java.util.function.Function;
public class Test {
  public static void main(String[] args) {
	  
    final Function<Void,Method> f = __ -> {
    	class Dummy{}
      return new Dummy(){}.getClass().getEnclosingMethod();
    };
    System.out.println(f.apply(null));
    new AnotherClass().foo();
  }
}
class AnotherClass {
	void foo() {
		final Function<Void,Method> f = __ -> {
	    	class Dummy{}
	      return new Dummy(){}.getClass().getEnclosingMethod();
	    };
	    System.out.println(f.apply(null));
	}
}

]


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

Standard Error

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