Failed
org.eclipse.jdt.core.tests.compiler.regression.AssignmentTest.test065 - 12 (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 - 12 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/genie.jdt/comptest/run.1565715170219/12_20190813_125251.txt
Standard Error
----------------------------------------