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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9, 10, openjfx11
    • Fix Version/s: openjfx11
    • Component/s: javafx
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: