Regression

org.eclipse.jdt.core.tests.compiler.regression.AssignmentTest.test065 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#115 )
Took 0.62 sec.

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 - 1.8
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.1566687977074/1.8.0_162_20190824_190625.txt

Standard Error

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