Regression

org.eclipse.jdt.core.tests.compiler.regression.ExpressionContextTests.test002 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#53 )
Took 0.86 sec.

Error Message

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

------------ but was ------------
X.java:10: error: types I and J are incompatible;\n
 Object p = (I & J) () -> {};\n
            ^\n
  class INT#1 inherits unrelated defaults for doitalso() from types I and J\n
  where INT#1 is an intersection type:\n
    INT#1 extends Object,I,J\n
1 error\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:10: error: types I and J are incompatible;\n
 Object p = (I & J) () -> {};\n
            ^\n
  class INT#1 inherits unrelated defaults for doitalso() from types I and J\n
  where INT#1 is an intersection type:\n
    INT#1 extends Object,I,J\n
1 error\n
]>

Stacktrace

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

------------ but was ------------
X.java:10: error: types I and J are incompatible;\n
	Object p = (I & J) () -> {};\n
	           ^\n
  class INT#1 inherits unrelated defaults for doitalso() from types I and J\n
  where INT#1 is an intersection type:\n
    INT#1 extends Object,I,J\n
1 error\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:10: error: types I and J are incompatible;\n
	Object p = (I & J) () -> {};\n
	           ^\n
  class INT#1 inherits unrelated defaults for doitalso() from types I and J\n
  where INT#1 is an intersection type:\n
    INT#1 extends Object,I,J\n
1 error\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.ExpressionContextTests.test002(ExpressionContextTests.java:71)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.ExpressionContextTests#test002 - 12
X.java [
interface I {
	void doit();
	default void doitalso () {}
}
interface J {
	void doit();
	default void doitalso () {}
}
public class X {
	Object p = (I & J) () -> {};
}

]


Full results sent to /tmp/comptest/run.1573297474160/12_20191109_110435.txt

Standard Error

--- javac err: ---
X.java:10: error: types I and J are incompatible;
	Object p = (I & J) () -> {};
	           ^
  class INT#1 inherits unrelated defaults for doitalso() from types I and J
  where INT#1 is an intersection type:
    INT#1 extends Object,I,J
1 error

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