Failed

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

Failing for the past 4 builds (Since #6 )
Took 1.6 sec.

Error Message

test1153 - Eclipse/Javac standard output mismatch.
----------- Expected ------------
java.lang.ref.Reference<p.X$Rather$Deeply>##java.lang.ref.Reference<p.X$Rather>##java.lang.ref.Reference<p.X$Rather$Deeply$Inside>##java.lang.ref.Reference<p.X<java.lang.String>$Other<java.lang.Thread>$Deeply>
------------ but was ------------
java.lang.ref.Reference<p.X$Rather$Deeply>##java.lang.ref.Reference<p.X$Rather>##java.lang.ref.Reference<p.X$Rather$Deeply$Inside>##java.lang.ref.Reference<p.X<java.lang.String>.Other<java.lang.Thread>.Deeply>
--------- Difference is ----------
 expected:<....X<java.lang.String>[$Other<java.lang.Thread>$]Deeply>> but was:<....X<java.lang.String>[.Other<java.lang.Thread>.]Deeply>>

Stacktrace

junit.framework.ComparisonFailure: test1153 - Eclipse/Javac standard output mismatch.
----------- Expected ------------
java.lang.ref.Reference<p.X$Rather$Deeply>##java.lang.ref.Reference<p.X$Rather>##java.lang.ref.Reference<p.X$Rather$Deeply$Inside>##java.lang.ref.Reference<p.X<java.lang.String>$Other<java.lang.Thread>$Deeply>
------------ but was ------------
java.lang.ref.Reference<p.X$Rather$Deeply>##java.lang.ref.Reference<p.X$Rather>##java.lang.ref.Reference<p.X$Rather$Deeply$Inside>##java.lang.ref.Reference<p.X<java.lang.String>.Other<java.lang.Thread>.Deeply>
--------- Difference is ----------
 expected:<....X<java.lang.String>[$Other<java.lang.Thread>$]Deeply>> but was:<....X<java.lang.String>[.Other<java.lang.Thread>.]Deeply>>
	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:2068)
	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.runConformTest(AbstractRegressionTest.java:1491)
	at org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test1153(GenericTypeTest.java:40361)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test1153 - 1.8
Y.java [
import java.lang.ref.Reference;
import p.X;
public class Y {
	Reference<X.Rather.Deeply> x;
	Reference<X.Rather> y;	
	Reference<X.Rather.Deeply.Inside> z;	
	Reference<X<String>.Other<Thread>.Deeply> t;
	Reference<X<String>.Other<Thread>.Deeply.Inside<Number>> u;
	Y(X someX) {
		this.x = someX.x;
		this. y = someX.y;	
		this.z = someX.z;	
		this.t = someX.t;
		this.u = someX.u;		
	}
	public static void main(String[] args) throws Exception {
		System.out.print(Y.class.getDeclaredField("x").getGenericType());
		System.out.print("##");
		System.out.print(Y.class.getDeclaredField("y").getGenericType());
		System.out.print("##");
		System.out.print(Y.class.getDeclaredField("z").getGenericType());
		System.out.print("##");
		System.out.print(Y.class.getDeclaredField("t").getGenericType());
		//System.out.print("##");
		//System.out.print(Y.class.getDeclaredField("u").getGenericType());
		System.out.println();
	}
}

]


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

Standard Error

--- javac err: ---
Y.java:9: warning: [rawtypes] found raw type: X
	Y(X someX) {
	  ^
  missing type arguments for generic class X<T>
  where T is a type-variable:
    T extends Object declared in class X
Y.java:10: warning: [unchecked] unchecked conversion
		this.x = someX.x;
		              ^
  required: Reference<Deeply>
  found:    Reference
Y.java:11: warning: [unchecked] unchecked conversion
		this. y = someX.y;	
		               ^
  required: Reference<Rather>
  found:    Reference
Y.java:12: warning: [unchecked] unchecked conversion
		this.z = someX.z;	
		              ^
  required: Reference<Inside>
  found:    Reference
Y.java:13: warning: [unchecked] unchecked conversion
		this.t = someX.t;
		              ^
  required: Reference<X<String>.Other<Thread>.Deeply>
  found:    Reference
Y.java:14: warning: [unchecked] unchecked conversion
		this.u = someX.u;		
		              ^
  required: Reference<X<String>.Other<Thread>.Deeply.Inside<Number>>
  found:    Reference
6 warnings

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