Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.LambdaRegressionTest.test002 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed #9 )
Took 0.65 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 17)\n
 super(s -> System.out.println(text));\n
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Cannot refer to 'this' nor 'super' while explicitly invoking a constructor\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 17)\n
 super(s -> System.out.println(text));\n
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Cannot refer to 'this' nor 'super' while explicitly invoking a constructor\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 17)\n
	super(s -> System.out.println(text));\n
	      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Cannot refer to 'this' nor 'super' while explicitly invoking a constructor\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 17)\n
	super(s -> System.out.println(text));\n
	      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
Cannot refer to 'this' nor 'super' while explicitly invoking a constructor\n
----------\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:2044)
	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.runNegativeTest(AbstractRegressionTest.java:2113)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2102)
	at org.eclipse.jdt.core.tests.compiler.regression.LambdaRegressionTest.test002(LambdaRegressionTest.java:67)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.LambdaRegressionTest#test002 - 1.8
X.java [
import java.util.function.Consumer;
@SuppressWarnings("all")
public class X {
  private final String text = "Bug?";
  public static void main(String[] args) {
    new X().doIt();
  }
  private void doIt() {
    new Sub();
  }
  private class Super<T> {
    public Super(Consumer<T> consumer) {
    }
  }
  private class Sub extends Super<String> {
    public Sub() {
      super(s -> System.out.println(text));
      // super(s -> System.out.println("miep"));
    }
  }
}

]


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

Standard Error

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