Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8022526

Fix compilation of JUnit tests

XMLWordPrintable

        There is compilation error in 8CPU tests after 8022270: JNLP TCK failures in 7u45

             [echo] Compile tests to C:\deploy_output_8_cpu_5\tmp\deploy/testclasses
            [mkdir] Created dir: C:\deploy_output_8_cpu_5\tmp\deploy\testclasses
            [mkdir] Created dir: C:\deploy_output_8_cpu_5\tmp\deploy\testclasses\app_jars
            [javac] Compiling 19 source files to C:\deploy_output_8_cpu_5\tmp\deploy\testclasses
            [javac] Note: C:\src\jdk8-cpu_2\deploy\test\shared\sun\tests\helpers\SignedJarHelper.java uses or overrides a deprecated API.
            [javac] Note: Recompile with -Xlint:deprecation for details.
            [javac] Note: Some input files use unchecked or unsafe operations.
            [javac] Note: Recompile with -Xlint:unchecked for details.
            [javac] Compiling 169 source files to C:\deploy_output_8_cpu_5\tmp\deploy\testclasses
            [javac] C:\src\jdk8-cpu_2\deploy\test\common\com\sun\deploy\ui\AppInfoTest.java:110: error: method setTitleFromJar in class AppInfo cannot be applied to given types;
            [javac] ainfo.setTitleFromJar(resource);
            [javac] ^
            [javac] required: URL,String
            [javac] found: URL
            [javac] reason: actual and formal argument lists differ in length
            [javac] C:\src\jdk8-cpu_2\deploy\test\common\com\sun\deploy\ui\AppInfoTest.java:115: error: method setTitleFromJar in class AppInfo cannot be applied to given types;
            [javac] ainfo.setTitleFromJar(resource);
            [javac] ^
            [javac] required: URL,String
            [javac] found: URL
            [javac] reason: actual and formal argument lists differ in length
            [javac] C:\src\jdk8-cpu_2\deploy\test\common\com\sun\deploy\ui\AppInfoTest.java:120: error: method setTitleFromJar in class AppInfo cannot be applied to given types;
            [javac] ainfo.setTitleFromJar(resource);
            [javac] ^
            [javac] required: URL,String
            [javac] found: URL
            [javac] reason: actual and formal argument lists differ in length
            [javac] Note: Some input files use unchecked or unsafe operations.
            [javac] Note: Recompile with -Xlint:unchecked for details.
            [javac] 3 errors

              dtitov Daniil Titov (Inactive)
              dtitov Daniil Titov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: