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

Amend java/io/FilePermission/Correctness.java to @requires for OS platform selection

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Withdrawn
    • Icon: P4 P4
    • None
    • 25
    • core-libs

      This test is targeted to run on Windows only using a boolean variable to record the OS platform, via the geProperty of os.name and throwing SkippedException for non Windows OS. This can be also done using the @requires (os.family == "windows")

      public class Correctness {

          static boolean err = false;
          static Method containsMethod;
          static boolean isWindows =
                  System.getProperty("os.name").contains("Windows");
          public static void main(String args[]) throws Exception {

            dboyle Dermot Boyle
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: