Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test1388 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

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

Error Message

test1388 - Javac found error(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
X.java:4: warning: [static] static variable should be qualified by type name, IA, instead of by an expression\n
  System.out.println(t.baz);\n
                      ^\n
X.java:4: error: IA is not public in p; cannot be accessed from outside package\n
  System.out.println(t.baz);\n
                     ^\n
1 error\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:4: warning: [static] static variable should be qualified by type name, IA, instead of by an expression\n
  System.out.println(t.baz);\n
                      ^\n
X.java:4: error: IA is not public in p; cannot be accessed from outside package\n
  System.out.println(t.baz);\n
                     ^\n
1 error\n
1 warning\n
]>

Stacktrace

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

------------ but was ------------
X.java:4: warning: [static] static variable should be qualified by type name, IA, instead of by an expression\n
		System.out.println(t.baz);\n
		                    ^\n
X.java:4: error: IA is not public in p; cannot be accessed from outside package\n
		System.out.println(t.baz);\n
		                   ^\n
1 error\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:4: warning: [static] static variable should be qualified by type name, IA, instead of by an expression\n
		System.out.println(t.baz);\n
		                    ^\n
X.java:4: error: IA is not public in p; cannot be accessed from outside package\n
		System.out.println(t.baz);\n
		                   ^\n
1 error\n
1 warning\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test1388(GenericTypeTest.java:48772)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test1388 - 1.8
X.java [
public class X<T extends AA & p.IB> {
	T t;
	void foo() {
		System.out.println(t.baz);
	}
	public static void main(String[] args) {
		X<CC> xcc = new X<CC>();
		xcc.t = new CC();
		xcc.foo();
	}
}
class AA {
	void bar() {}
}
class CC extends AA implements p.IB {
}

]
p/IB.java [
package p;
interface IA {
	Object baz = "done";
}
public interface IB extends IA {
}

]


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

--- javac err: ---
X.java:4: warning: [static] static variable should be qualified by type name, IA, instead of by an expression
		System.out.println(t.baz);
		                    ^
X.java:4: error: IA is not public in p; cannot be accessed from outside package
		System.out.println(t.baz);
		                   ^
1 error
1 warning

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