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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • jfx11
    • jfx11, 9, 10
    • 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.

            almatvee Alexander Matveev
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: