Skip to content

Failed

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

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

Error Message

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

------------ but was ------------
X.java:5: error: IA is not public in p; cannot be accessed from outside package\n
  xt.get().baz();\n
        ^\n
1 error\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:5: error: IA is not public in p; cannot be accessed from outside package\n
  xt.get().baz();\n
        ^\n
1 error\n
]>

Stacktrace

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

------------ but was ------------
X.java:5: error: IA is not public in p; cannot be accessed from outside package\n
		xt.get().baz();\n
		      ^\n
1 error\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:5: error: IA is not public in p; cannot be accessed from outside package\n
		xt.get().baz();\n
		      ^\n
1 error\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test1386(GenericTypeTest.java:48655)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test1386 - 1.8
X.java [
public class X<T extends AA & p.IB> {
	T get() { return null; }
	
	void foo(X<T> xt) {
		xt.get().baz();
	}
}
class AA {
	void bar() {}
}

]
p/IB.java [
package p;
interface IA {
	void baz();
}
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:5: error: IA is not public in p; cannot be accessed from outside package
		xt.get().baz();
		      ^
1 error

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