Regression

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

Failing for the past 1 build (Since Failed#96 )
Took 0.73 sec.

Error Message

testBug520874d - 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.Inner;\n
        ^^^^^^^^^^^\n
The import p.Bar.Inner 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.Inner;\n
        ^^^^^^^^^^^\n
The import p.Bar.Inner is never used\n
----------\n
]>

Stacktrace

junit.framework.ComparisonFailure: 
testBug520874d - 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.Inner;\n
	       ^^^^^^^^^^^\n
The import p.Bar.Inner 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.Inner;\n
	       ^^^^^^^^^^^\n
The import p.Bar.Inner is never used\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest.testBug520874d(StaticImportTest.java:3361)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest#testBug520874d - 10
p/X.java [
package p;
import static p.A.B.Inner;
import p.Bar.Inner;
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/genie.jdt/comptest/run.1566100984719/10.0.1_20190818_000313.txt

Standard Error

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