Failed

org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_7.testBug490988 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

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

Error Message

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

------------ but was ------------
----------\n
1. ERROR in Thing.java (at line 5)\n
 Iterator.super.remove(); // not 1.7-compliant (must be an error)\n
 ^^^^^^^^^^^^^^\n
Super method references to interface default methods are allowed only at source level 1.8 or above\n
----------\n
2. ERROR in Thing.java (at line 6)\n
 Comparator.naturalOrder(); // not 1.7-compliant (bad error message)\n
            ^^^^^^^^^^^^\n
References to interface static methods are allowed only at source level 1.8 or above\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in Thing.java (at line 5)\n
 Iterator.super.remove(); // not 1.7-compliant (must be an error)\n
 ^^^^^^^^^^^^^^\n
Super method references to interface default methods are allowed only at source level 1.8 or above\n
----------\n
2. ERROR in Thing.java (at line 6)\n
 Comparator.naturalOrder(); // not 1.7-compliant (bad error message)\n
            ^^^^^^^^^^^^\n
References to interface static methods are allowed only at source level 1.8 or above\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in Thing.java (at line 5)\n
	Iterator.super.remove(); // not 1.7-compliant (must be an error)\n
	^^^^^^^^^^^^^^\n
Super method references to interface default methods are allowed only at source level 1.8 or above\n
----------\n
2. ERROR in Thing.java (at line 6)\n
	Comparator.naturalOrder(); // not 1.7-compliant (bad error message)\n
	           ^^^^^^^^^^^^\n
References to interface static methods are allowed only at source level 1.8 or above\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in Thing.java (at line 5)\n
	Iterator.super.remove(); // not 1.7-compliant (must be an error)\n
	^^^^^^^^^^^^^^\n
Super method references to interface default methods are allowed only at source level 1.8 or above\n
----------\n
2. ERROR in Thing.java (at line 6)\n
	Comparator.naturalOrder(); // not 1.7-compliant (bad error message)\n
	           ^^^^^^^^^^^^\n
References to interface static methods are allowed only at source level 1.8 or above\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:2220)
	at org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_7.testBug490988(Compliance_1_7.java:189)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.Compliance_1_7#testBug490988 - 1.8
Thing.java [
import java.util.Comparator;
import java.util.Iterator;
public class Thing implements Iterator<Object> {
    void breaking() {
        Iterator.super.remove(); // not 1.7-compliant (must be an error)
        Comparator.naturalOrder(); // not 1.7-compliant (bad error message)
    }
    @Override
    public boolean hasNext() {
        return false;
    }
    @Override
    public Object next() {
        return null;
    }
    public static void main(String[] args) {
        new Thing().breaking();
    }
}
]


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

Standard Error

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