Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.SwitchTest.testBug374605 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 2 builds (Since #167 )
Took 0.9 sec.

Error Message

testBug374605 - Eclipse found warning(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. WARNING in p\X.java (at line 4)\n
 switch (i) {\n
         ^\n
The switch statement should have a default case\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in p\X.java (at line 4)\n
 switch (i) {\n
         ^\n
The switch statement should have a default case\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. WARNING in p\X.java (at line 4)\n
	switch (i) {\n
	        ^\n
The switch statement should have a default case\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in p\X.java (at line 4)\n
	switch (i) {\n
	        ^\n
The switch statement should have a default case\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.SwitchTest.testBug374605(SwitchTest.java:2144)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.SwitchTest#testBug374605 - 1.8
p/X.java [
package p;
class X {
  void v(int i) {
    switch (i) {
      case 1 :
        break;
      case 2 :
        break;
    }
  }
}
]


Full results sent to /home/jenkins/agent/workspace/eclipse.jdt.core-run.javac-1.8/tmp/comptest/run.1584479137560/1.8.0_202_20200317_210541.txt

Standard Error

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