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

MonitorVmStartTerminate fails intermittently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • hotspot
    • None
    • svc

      The test contains a method for creating a file that is used for process signaling.

                  Files.write(path, new byte[0], StandardOpenOption.CREATE);
      - if (!Files.exists(path)) {
      - throw new Error("Newly created file " + path
      - + " does not exist!");
      - }
              }

      An unexpected exception may be thrown if file is removed between Files.write and .Files.exists. Fix is to remove Files.exist call.

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: