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

Replace use of deprecated single string variant of Runtime.exec method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx18
    • Fix Version/s: openjfx19
    • Component/s: javafx
    • Labels:

      Description

      JavaFX uses the recently-deprecated (see JDK-8276408) single string variant of the Runtime::exec method in the following places:

      modules/javafx.graphics/src/main/java/com/sun/javafx/application/HostServicesDelegate.java:
         137 if (osName.startsWith("Mac OS")) {
         138 Runtime.getRuntime().exec(
         139 "open " + uri);
         140 } else if (osName.startsWith("Windows")) {
         141 Runtime.getRuntime().exec(
         142 "rundll32 url.dll,FileProtocolHandler " + uri);

      We should replace these calls with Runtime::exec(String[])

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kcr Kevin Rushforth
              Reporter:
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: