Regression

org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest.testBug520874e - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#116 )
Took 0.97 sec.

Error Message

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

------------ but was ------------
----------\n
1. WARNING in p\X.java (at line 2)\n
 import static p.A.B.Inner;\n
               ^^^^^^^^^^^\n
The import p.A.B.Inner is never used\n
----------\n
2. WARNING in p\X.java (at line 3)\n
 import p.Bar.*;\n
        ^^^^^\n
The import p.Bar is never used\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in p\X.java (at line 2)\n
 import static p.A.B.Inner;\n
               ^^^^^^^^^^^\n
The import p.A.B.Inner is never used\n
----------\n
2. WARNING in p\X.java (at line 3)\n
 import p.Bar.*;\n
        ^^^^^\n
The import p.Bar is never used\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. WARNING in p\X.java (at line 2)\n
	import static p.A.B.Inner;\n
	              ^^^^^^^^^^^\n
The import p.A.B.Inner is never used\n
----------\n
2. WARNING in p\X.java (at line 3)\n
	import p.Bar.*;\n
	       ^^^^^\n
The import p.Bar is never used\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in p\X.java (at line 2)\n
	import static p.A.B.Inner;\n
	              ^^^^^^^^^^^\n
The import p.A.B.Inner is never used\n
----------\n
2. WARNING in p\X.java (at line 3)\n
	import p.Bar.*;\n
	       ^^^^^\n
The import p.Bar is never used\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest.testBug520874e(StaticImportTest.java:3393)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest#testBug520874e - 10
p/X.java [
package p;
import static p.A.B.Inner;
import p.Bar.*;
public class X {}
class A {
    static class B extends Bar {}
}

]
p/Bar.java [
package p;
public class Bar {;
	public static class Inner {}
}

]


Full results sent to /tmp/comptest/run.1575176690486/10.0.2_20191201_050454.txt

Standard Error

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