Eliminate use of sun.nio.ch.DirectBuffer in javafx.media

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • jfx11
    • Affects Version/s: jfx11, 9, 10
    • Component/s: javafx

      The javafx.media module has a dependency on sun.nio.ch.DirectBuffer and jdk.internal.ref.Cleaner, both of which are internal classes. The following code is to blame:

              public void closeConnection() {
                  ...
                  if (buffer instanceof DirectBuffer) {
                      ((DirectBuffer) buffer).cleaner().clean();
                  }
              }

      In an effort to eliminate the use of internal packages from core module by javafx.* modules we need an alternative solution.

            Assignee:
            Alexander Matveev
            Reporter:
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: