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

[TEST_BUG] Test com/sun/tools/attach/ProviderTest.java doesn't compile as package java.nio.file is missing

XMLWordPrintable

    • b05
    • b09
    • generic
    • generic

        Testsuite name: j2se_rest
        Test name(s): com/sun/tools/attach/ProviderTest.java
        Product(s) tested: JDK 6u91b05
        OS/architecture: Linux
        Product Bug or Test Bug : Test Bug
        Reproducible: Always
        Reproducible on machine: stt-33.ru.oracle.com, spb23117.ru.oracle.com, spb23297.ru.oracle.com(Windows)

        Is it a Regression: No
        Regression introduced in release/build: N/A
        Test result on the last GAed release for this train:
        Test result on FCS:
        Is it a platform specific issue: No( fails in linux and windows)

        Exception/Error from Log:
        ----------System.err:(19/1052)----------
        /export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/RunnerUtil.java:26: package java.nio.file does not exist
        import java.nio.file.Files;
                            ^
        /export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/RunnerUtil.java:27: package java.nio.file does not exist
        import java.nio.file.Path;
                            ^
        /export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/RunnerUtil.java:163: cannot find symbol
        symbol : method toPath()
        location: class java.io.File
                    byte[] bytes = Files.readAllBytes(file.toPath());
                                                          ^
        /export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/RunnerUtil.java:163: cannot find symbol
        symbol : variable Files
        location: class RunnerUtil
                    byte[] bytes = Files.readAllBytes(file.toPath());
                                   ^
        Note: /export/local/aurora/CommonData/j2se/test/lib/testlibrary/jdk/testlibrary/StreamPumper.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        4 errors
        result: Failed. Compilation failed: Compilation failed


        test result: Failed. Compilation failed: Compilation failed

        Test run log location:
        Steps to reproduce:
        1. login into stt-33.ru.oracle.com
        2. run : /export/jdk/jdk1.6.0_91b05/bin/java -jar /net/stt-13.ru.oracle.com/export/home0/regression/tools/jtreg/lib/jtreg.jar -timeout:10 -noreport -verbose -vmoptions:'-Xmixed -server -d64' -automatic -jdk:/export/jdk/jdk1.6.0_91b05 -r:/export/home/gtee -w:/export/home/gtee/ -dir:/net/stt-13.ru.oracle.com/export/home0/regression/workspaces/1.6.0/1.6.0_91b05/j2se/test com/sun/tools/attach/ProviderTest.java

              aeriksso Andreas Eriksson (Inactive)
              sgupta Shobhit Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: