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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Withdrawn
    • Priority: P4
    • None
    • Affects Version/s: 25
    • Component/s: 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 {

            Assignee:
            Dermot Boyle
            Reporter:
            Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: