Failed
org.eclipse.jdt.core.tests.compiler.regression.AssignmentTest.test065 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test065 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 10)\n return foo && (foo = foo);\n ^^^^^^^^^^^\n The assignment to variable foo has no effect\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 10)\n return foo && (foo = foo);\n ^^^^^^^^^^^\n The assignment to variable foo has no effect\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: test065 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 10)\n return foo && (foo = foo);\n ^^^^^^^^^^^\n The assignment to variable foo has no effect\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 10)\n return foo && (foo = foo);\n ^^^^^^^^^^^\n The assignment to variable foo has no effect\n ----------\n ]> at org.eclipse.jdt.core.tests.compiler.regression.AssignmentTest.test065(AssignmentTest.java:1893)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.AssignmentTest#test065 - 10 X.java [ public class X { protected boolean foo = false; public boolean test() { return foo || (foo = foo()); } public boolean test2() { return foo && (foo = foo()); } public boolean test3() { return foo && (foo = foo); } boolean foo() { return true; } } ] Full results sent to /tmp/comptest/run.1584245034298/10.0.2_20200315_040443.txt
Standard Error
----------------------------------------