Failed

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

Failing for the past 51 builds (Since #64 )
Took 0.67 sec.

Error Message

test0052 - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 5)\n
 X<Number> x = new X<Number>(1);\n
                   ^\n
Redundant specification of type arguments <Number>\n
----------\n
2. ERROR in X.java (at line 6)\n
 X<String> x2 = new X<String>("SUCCESS");\n
                    ^\n
Redundant specification of type arguments <String>\n
----------\n
3. ERROR in X.java (at line 7)\n
 X<Integer> x3 = new X<Integer>(1);\n
                     ^\n
Redundant specification of type arguments <Integer>\n
----------\n
4. ERROR in X.java (at line 8)\n
 X<AX> x4 = new X<AX>(new AX());\n
                ^\n
Redundant specification of type arguments <AX>\n
----------\n
5. ERROR in X.java (at line 9)\n
 X<? extends AX> x5 = new X<AX<String>>(new AX<String>());\n
                          ^\n
Redundant specification of type arguments <AX<String>>\n
----------\n
6. ERROR in X.java (at line 10)\n
 X<?> x6 = new X<AX<String>>(new AX<String>());\n
               ^\n
Redundant specification of type arguments <AX<String>>\n
----------\n
7. ERROR in X.java (at line 11)\n
 X<Class<? extends Object>> x7 = new X<Class<? extends Object>>();\n
                                     ^\n
Redundant specification of type arguments <Class<? extends Object>>\n
----------\n

------------ but was ------------
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
          ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
                         ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
                                 ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:9: warning: [rawtypes] found raw type: AX\n
   X<? extends AX> x5 = new X<AX<String>>(new AX<String>());\n
               ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
4 warnings\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in X.java (at line 5)\n
 X<Number> x = new X<Number>(1);\n
                   ^\n
Redundant specification of type arguments <Number>\n
----------\n
2. ERROR in X.java (at line 6)\n
 X<String> x2 = new X<String>("SUCCESS");\n
                    ^\n
Redundant specification of type arguments <String>\n
----------\n
3. ERROR in X.java (at line 7)\n
 X<Integer> x3 = new X<Integer>(1);\n
                     ^\n
Redundant specification of type arguments <Integer>\n
----------\n
4. ERROR in X.java (at line 8)\n
 X<AX> x4 = new X<AX>(new AX());\n
                ^\n
Redundant specification of type arguments <AX>\n
----------\n
5. ERROR in X.java (at line 9)\n
 X<? extends AX> x5 = new X<AX<String>>(new AX<String>());\n
                          ^\n
Redundant specification of type arguments <AX<String>>\n
----------\n
6. ERROR in X.java (at line 10)\n
 X<?> x6 = new X<AX<String>>(new AX<String>());\n
               ^\n
Redundant specification of type arguments <AX<String>>\n
----------\n
7. ERROR in X.java (at line 11)\n
 X<Class<? extends Object>> x7 = new X<Class<? extends Object>>();\n
                                     ^\n
Redundant specification of type arguments <Class<? extends Object>>\n
----------]\n
> but was:<[X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
          ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
                         ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
                                 ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:9: warning: [rawtypes] found raw type: AX\n
   X<? extends AX> x5 = new X<AX<String>>(new AX<String>());\n
               ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
4 warnings]\n
>

Stacktrace

junit.framework.ComparisonFailure: 
test0052 - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 5)\n
	X<Number> x = new X<Number>(1);\n
	                  ^\n
Redundant specification of type arguments <Number>\n
----------\n
2. ERROR in X.java (at line 6)\n
	X<String> x2 = new X<String>("SUCCESS");\n
	                   ^\n
Redundant specification of type arguments <String>\n
----------\n
3. ERROR in X.java (at line 7)\n
	X<Integer> x3 = new X<Integer>(1);\n
	                    ^\n
Redundant specification of type arguments <Integer>\n
----------\n
4. ERROR in X.java (at line 8)\n
	X<AX> x4 = new X<AX>(new AX());\n
	               ^\n
Redundant specification of type arguments <AX>\n
----------\n
5. ERROR in X.java (at line 9)\n
	X<? extends AX> x5 = new X<AX<String>>(new AX<String>());\n
	                         ^\n
Redundant specification of type arguments <AX<String>>\n
----------\n
6. ERROR in X.java (at line 10)\n
	X<?> x6 = new X<AX<String>>(new AX<String>());\n
	              ^\n
Redundant specification of type arguments <AX<String>>\n
----------\n
7. ERROR in X.java (at line 11)\n
	X<Class<? extends Object>> x7 = new X<Class<? extends Object>>();\n
	                                    ^\n
Redundant specification of type arguments <Class<? extends Object>>\n
----------\n

------------ but was ------------
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
          ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
                         ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
                                 ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:9: warning: [rawtypes] found raw type: AX\n
		 X<? extends AX> x5 = new X<AX<String>>(new AX<String>());\n
		             ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
4 warnings\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in X.java (at line 5)\n
	X<Number> x = new X<Number>(1);\n
	                  ^\n
Redundant specification of type arguments <Number>\n
----------\n
2. ERROR in X.java (at line 6)\n
	X<String> x2 = new X<String>("SUCCESS");\n
	                   ^\n
Redundant specification of type arguments <String>\n
----------\n
3. ERROR in X.java (at line 7)\n
	X<Integer> x3 = new X<Integer>(1);\n
	                    ^\n
Redundant specification of type arguments <Integer>\n
----------\n
4. ERROR in X.java (at line 8)\n
	X<AX> x4 = new X<AX>(new AX());\n
	               ^\n
Redundant specification of type arguments <AX>\n
----------\n
5. ERROR in X.java (at line 9)\n
	X<? extends AX> x5 = new X<AX<String>>(new AX<String>());\n
	                         ^\n
Redundant specification of type arguments <AX<String>>\n
----------\n
6. ERROR in X.java (at line 10)\n
	X<?> x6 = new X<AX<String>>(new AX<String>());\n
	              ^\n
Redundant specification of type arguments <AX<String>>\n
----------\n
7. ERROR in X.java (at line 11)\n
	X<Class<? extends Object>> x7 = new X<Class<? extends Object>>();\n
	                                    ^\n
Redundant specification of type arguments <Class<? extends Object>>\n
----------]\n
> but was:<[X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
          ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
                         ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:8: warning: [rawtypes] found raw type: AX\n
        X<AX> x4 = new X<AX>(new AX());\n
                                 ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
X.java:9: warning: [rawtypes] found raw type: AX\n
		 X<? extends AX> x5 = new X<AX<String>>(new AX<String>());\n
		             ^\n
  missing type arguments for generic class AX<T>\n
  where T is a type-variable:\n
    T extends Object declared in class AX\n
4 warnings]\n
>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0052(GenericsRegressionTest_1_7.java:2014)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7#test0052 - 1.8
X.java [
public class X<E> {
    X(E e) {}
    X() {}
    public static void main(String[] args) {
        X<Number> x = new X<Number>(1);
        X<String> x2 = new X<String>("SUCCESS");
        X<Integer> x3 = new X<Integer>(1);
        X<AX> x4 = new X<AX>(new AX());
		 X<? extends AX> x5 = new X<AX<String>>(new AX<String>());
		 X<?> x6 = new X<AX<String>>(new AX<String>());
		 X<Class<? extends Object>> x7 = new X<Class<? extends Object>>();
	}
}
class AX<T>{}

]


Full results sent to /tmp/genie.jdt/comptest/run.1566619421654/1.8.0_162_20190824_000350.txt

Standard Error

java.nio.file.NoSuchFileException: /tmp/genie.jdt/comptest/run.1566619421654/javac/1.8.0_162
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
	at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
	at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
	at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
	at java.base/java.nio.file.Files.readAttributes(Files.java:1755)
	at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
	at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
	at java.base/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
	at java.base/java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:71)
	at java.base/java.nio.file.Files.walk(Files.java:3650)
	at java.base/java.nio.file.Files.walk(Files.java:3704)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.deleteSourceFiles(AbstractRegressionTest.java:2405)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runJavac(AbstractRegressionTest.java:2282)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:3243)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2968)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2649)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2640)
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0052(GenericsRegressionTest_1_7.java:2014)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.runTest(TestCase.java:964)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(CompilerTestSetup.java:59)
	at junit.framework.TestSuite.runTest(TestSuite.java:252)
	at junit.framework.TestSuite.run(TestSuite.java:247)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:206)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:161)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:84)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:113)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:593)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:205)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1468)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1441)
--- javac err: ---
X.java:8: warning: [rawtypes] found raw type: AX
        X<AX> x4 = new X<AX>(new AX());
          ^
  missing type arguments for generic class AX<T>
  where T is a type-variable:
    T extends Object declared in class AX
X.java:8: warning: [rawtypes] found raw type: AX
        X<AX> x4 = new X<AX>(new AX());
                         ^
  missing type arguments for generic class AX<T>
  where T is a type-variable:
    T extends Object declared in class AX
X.java:8: warning: [rawtypes] found raw type: AX
        X<AX> x4 = new X<AX>(new AX());
                                 ^
  missing type arguments for generic class AX<T>
  where T is a type-variable:
    T extends Object declared in class AX
X.java:9: warning: [rawtypes] found raw type: AX
		 X<? extends AX> x5 = new X<AX<String>>(new AX<String>());
		             ^
  missing type arguments for generic class AX<T>
  where T is a type-variable:
    T extends Object declared in class AX
4 warnings

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