Regression

org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest.test064 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#95 )
Took 0.72 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 4)\n
 new String("You must not bar!");\n
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
The allocated object is never used\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 4)\n
 new String("You must not bar!");\n
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
The allocated object is never used\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 4)\n
	new String("You must not bar!");\n
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
The allocated object is never used\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 4)\n
	new String("You must not bar!");\n
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
The allocated object is never used\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest.test064(FlowAnalysisTest.java:2068)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest#test064 - 10
X.java [
public class X {
   boolean bar() { return false; } 
	public void foo() {		if (bar())
			new String("You must not bar!");
	}
}
]


Full results sent to /tmp/genie.jdt/comptest/run.1565496180436/10.0.1_20190811_000308.txt

Standard Error

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