Failed

org.eclipse.jdt.core.tests.compiler.regression.ProblemTypeAndMethodTest.test121 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#9 )
Took 0.86 sec.

Error Message

test121 - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 13)\n
 public void bar3() {\n
             ^^^^^^\n
The method bar3() from the type X can potentially be declared as static\n
----------\n

------------ but was ------------
X.java:8: warning: [static] static variable should be qualified by type name, A, instead of by an expression\n
  super.fieldA = 1;\n
       ^\n
X.java:11: warning: [static] static variable should be qualified by type name, A, instead of by an expression\n
  System.out.println(super.fieldA);\n
                          ^\n
2 warnings\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in X.java (at line 13)\n
 public void bar3() {\n
             ^^^^^^\n
The method bar3() from the type X can potentially be declared as static\n
----------]\n
> but was:<[X.java:8: warning: [static] static variable should be qualified by type name, A, instead of by an expression\n
  super.fieldA = 1;\n
       ^\n
X.java:11: warning: [static] static variable should be qualified by type name, A, instead of by an expression\n
  System.out.println(super.fieldA);\n
                          ^\n
2 warnings]\n
>

Stacktrace

junit.framework.ComparisonFailure: test121 - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 13)\n
	public void bar3() {\n
	            ^^^^^^\n
The method bar3() from the type X can potentially be declared as static\n
----------\n

------------ but was ------------
X.java:8: warning: [static] static variable should be qualified by type name, A, instead of by an expression\n
		super.fieldA = 1;\n
		     ^\n
X.java:11: warning: [static] static variable should be qualified by type name, A, instead of by an expression\n
		System.out.println(super.fieldA);\n
		                        ^\n
2 warnings\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in X.java (at line 13)\n
	public void bar3() {\n
	            ^^^^^^\n
The method bar3() from the type X can potentially be declared as static\n
----------]\n
> but was:<[X.java:8: warning: [static] static variable should be qualified by type name, A, instead of by an expression\n
		super.fieldA = 1;\n
		     ^\n
X.java:11: warning: [static] static variable should be qualified by type name, A, instead of by an expression\n
		System.out.println(super.fieldA);\n
		                        ^\n
2 warnings]\n
>
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:260)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:236)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runJavac(AbstractRegressionTest.java:2048)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2814)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2539)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2220)
	at org.eclipse.jdt.core.tests.compiler.regression.ProblemTypeAndMethodTest.test121(ProblemTypeAndMethodTest.java:6685)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.ProblemTypeAndMethodTest#test121 - 1.8
X.java [
public class X extends A{
	public static int field1;
	public int field2;
	public void methodA() {
		super.methodA();
	}
	public void bar() {
		super.fieldA = 1;
	}
	public void bar2() {
		System.out.println(super.fieldA);
	}
	public void bar3() {
		System.out.println(X.fieldA);
	}
}
class A{
	public static int fieldA;
   public void methodA(){
   }
}
]


Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt

Standard Error

--- javac err: ---
X.java:8: warning: [static] static variable should be qualified by type name, A, instead of by an expression
		super.fieldA = 1;
		     ^
X.java:11: warning: [static] static variable should be qualified by type name, A, instead of by an expression
		System.out.println(super.fieldA);
		                        ^
2 warnings

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