Failed
org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest.test064 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
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 - 12 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.1565715170219/12_20190813_125251.txt
Standard Error
----------------------------------------