Skip to content

Failed

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

Failing for the past 35 builds (Since #9 )
Took 0.67 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:48647)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test1386 - 11
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 /tmp/genie.jdt/comptest/run.1565427784609/11_20190810_050312.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

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