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

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

XMLWordPrintable

    • b17

      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[])

            lkostyra Lukasz Kostyra
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: