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

[TEST_BUG] com/sun/management/OperatingSystemMXBean/TestTotalSwap.java Compilation failed after JDK-8077387

XMLWordPrintable

        Test com/sun/management/OperatingSystemMXBean/TestTotalSwap.java fails to compile after JDK-8077387's change.

        Compilation failure cause by usage of jdk.testlibrary.OSInfo that is not present in jdk8 workspace.

        Logs:
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:58: error: cannot find symbol
        import jdk.testlibrary.OSInfo;
                              ^
          symbol: class OSInfo
          location: package jdk.testlibrary
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:108: error: package OSInfo does not exist
                OSInfo.OSType os = OSInfo.getOSType();
                      ^
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:108: error: cannot find symbol
                OSInfo.OSType os = OSInfo.getOSType();
                                   ^
          symbol: variable OSInfo
          location: class TestTotalSwap
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:116: error: cannot find symbol
                    case LINUX: {
                         ^
          symbol: variable LINUX
          location: class TestTotalSwap
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:117: error: cannot find symbol
                        String swapSizeStr = ProcessTools.executeCommand("free", "-b")
                                                         ^
          symbol: method executeCommand(String,String)
          location: class ProcessTools
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:121: error: cannot find symbol
                    case SOLARIS: {
                         ^
          symbol: variable SOLARIS
          location: class TestTotalSwap
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:124: error: cannot find symbol
                        OutputAnalyzer out= ProcessTools.executeCommand(
                                                        ^
          symbol: method executeCommand(String,String)
          location: class ProcessTools
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:131: error: cannot find symbol
                        for (String line : out.asLines()) {
                                              ^
          symbol: method asLines()
          location: variable out of type OutputAnalyzer
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:142: error: cannot find symbol
                    case MACOSX: {
                         ^
          symbol: variable MACOSX
          location: class TestTotalSwap
        /export/home/aurora/sandbox/testbase/test/com/sun/management/OperatingSystemMXBean/TestTotalSwap.java:144: error: cannot find symbol
                        String swapSizeStr = ProcessTools.executeCommand(
                                                         ^
          symbol: method executeCommand(String,String,String)
          location: class ProcessTools
        Note: /export/home/aurora/sandbox/testbase/test/lib/testlibrary/jdk/testlibrary/StreamPumper.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        10 errors
        result: Failed. Compilation failed: Compilation failed

              jbachorik Jaroslav Bachorík
              snikandrova Svetlana Nikandrova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: