Failed

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

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

Error Message

test428261a - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
X.java:11: error: incompatible types: invalid constructor reference\n
  I i = Local::new;\n
        ^\n
    cannot access constructor Local(int)\n
      an enclosing instance of type X is not in scope\n
1 error\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:11: error: incompatible types: invalid constructor reference\n
  I i = Local::new;\n
        ^\n
    cannot access constructor Local(int)\n
      an enclosing instance of type X is not in scope\n
1 error\n
]>

Stacktrace

junit.framework.ComparisonFailure: test428261a - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
X.java:11: error: incompatible types: invalid constructor reference\n
		I i = Local::new;\n
		      ^\n
    cannot access constructor Local(int)\n
      an enclosing instance of type X is not in scope\n
1 error\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:11: error: incompatible types: invalid constructor reference\n
		I i = Local::new;\n
		      ^\n
    cannot access constructor Local(int)\n
      an enclosing instance of type X is not in scope\n
1 error\n
]>
	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:2052)
	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.test428261a(LambdaExpressionsTest.java:3360)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.LambdaExpressionsTest#test428261a - 1.8
X.java [
interface I {
	X foo(int a);
}
public class X {
	void goo() {
		class Local extends X {
			Local(int a) {
				System.out.println(a);
			}
		}
		I i = Local::new;
       i.foo(10);
	}
   public static void main(String [] args) {
        new X().goo();
   }
}

]


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

Standard Error

--- javac err: ---
X.java:11: error: incompatible types: invalid constructor reference
		I i = Local::new;
		      ^
    cannot access constructor Local(int)
      an enclosing instance of type X is not in scope
1 error

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