Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0055 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

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

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 6)\n
 X<String>.Inner<Integer> a= new X<String>().new Inner<Integer>();\n
                                                 ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
2. ERROR in X.java (at line 8)\n
 Inner<Integer> b= new X<A>().new Inner<Integer>();\n
                                  ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
3. ERROR in X.java (at line 9)\n
 Inner<Integer> c= new Inner<Integer>();\n
                       ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
4. ERROR in X.java (at line 10)\n
 X<A>.Inner<Integer> e= new X<A>().new Inner<Integer>();\n
                                       ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
5. ERROR in X.java (at line 11)\n
 X<A>.Inner<Integer> f= new Inner<Integer>();\n
                            ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
6. ERROR in X.java (at line 12)\n
 X.Inner2<Integer> d3 = new X.Inner2<Integer>();\n
                              ^^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 6)\n
 X<String>.Inner<Integer> a= new X<String>().new Inner<Integer>();\n
                                                 ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
2. ERROR in X.java (at line 8)\n
 Inner<Integer> b= new X<A>().new Inner<Integer>();\n
                                  ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
3. ERROR in X.java (at line 9)\n
 Inner<Integer> c= new Inner<Integer>();\n
                       ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
4. ERROR in X.java (at line 10)\n
 X<A>.Inner<Integer> e= new X<A>().new Inner<Integer>();\n
                                       ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
5. ERROR in X.java (at line 11)\n
 X<A>.Inner<Integer> f= new Inner<Integer>();\n
                            ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
6. ERROR in X.java (at line 12)\n
 X.Inner2<Integer> d3 = new X.Inner2<Integer>();\n
                              ^^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 6)\n
	X<String>.Inner<Integer> a= new X<String>().new Inner<Integer>();\n
	                                                ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
2. ERROR in X.java (at line 8)\n
	Inner<Integer> b= new X<A>().new Inner<Integer>();\n
	                                 ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
3. ERROR in X.java (at line 9)\n
	Inner<Integer> c= new Inner<Integer>();\n
	                      ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
4. ERROR in X.java (at line 10)\n
	X<A>.Inner<Integer> e= new X<A>().new Inner<Integer>();\n
	                                      ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
5. ERROR in X.java (at line 11)\n
	X<A>.Inner<Integer> f= new Inner<Integer>();\n
	                           ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
6. ERROR in X.java (at line 12)\n
	X.Inner2<Integer> d3 = new X.Inner2<Integer>();\n
	                             ^^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 6)\n
	X<String>.Inner<Integer> a= new X<String>().new Inner<Integer>();\n
	                                                ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
2. ERROR in X.java (at line 8)\n
	Inner<Integer> b= new X<A>().new Inner<Integer>();\n
	                                 ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
3. ERROR in X.java (at line 9)\n
	Inner<Integer> c= new Inner<Integer>();\n
	                      ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
4. ERROR in X.java (at line 10)\n
	X<A>.Inner<Integer> e= new X<A>().new Inner<Integer>();\n
	                                      ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
5. ERROR in X.java (at line 11)\n
	X<A>.Inner<Integer> f= new Inner<Integer>();\n
	                           ^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
6. ERROR in X.java (at line 12)\n
	X.Inner2<Integer> d3 = new X.Inner2<Integer>();\n
	                             ^^^^^^\n
Redundant specification of type arguments <Integer>\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0055(GenericsRegressionTest_1_7.java:2308)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7#test0055 - 1.8
X.java [
public class X<A> {
  class Inner<B> { }
  static class Inner2<C> { }

  void method() {
    X<String>.Inner<Integer> a= new X<String>().new Inner<Integer>();
    X<String>.Inner<Integer> a1= new X<String>().new Inner<>();
    Inner<Integer> b= new X<A>().new Inner<Integer>();
    Inner<Integer> c= new Inner<Integer>();
    X<A>.Inner<Integer> e= new X<A>().new Inner<Integer>();
    X<A>.Inner<Integer> f= new Inner<Integer>();
    X.Inner2<Integer> d3 = new X.Inner2<Integer>();
  }
}

]


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

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