JDK-8158584 : ConnectionHolder uses sun.misc.Cleaner
  • Type: Bug
  • Component: javafx
  • Sub-Component: media
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • Submitted: 2016-06-02
  • Updated: 2016-06-03
  • Resolved: 2016-06-03
Related Reports
Relates :  
Description
JavaFX media ConnectionHolder is using sun.misc.Cleaner and does not have an export that allows for its use with Jigsaw.

This is a hidden failure with the current build, and a fatal error with a full JIGSAW build (currently using some side scripts for that).

modules/javafx.media/src/main/java/com/sun/media/jfxmedia/locator/ConnectionHolder.java:233: warning: DirectBuffer is internal proprietary API and may be removed in a future release
            if (buffer instanceof DirectBuffer) {
                                  ^
modules/javafx.media/src/main/java/com/sun/media/jfxmedia/locator/ConnectionHolder.java:234: warning: DirectBuffer is internal proprietary API and may be removed in a future release
                ((DirectBuffer) buffer).cleaner().clean();
                  ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 warnings

### building javafx.web

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ddhill@ddhpad rt]$ $JIGSAW_HOME/bin/java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+121)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+121, mixed mode)
Comments
Updated my repo, cleaned and rebuilt (again) and now cannot reproduce the problem.
03-06-2016

This should have already been fixed by JDK-8152355. Odd that you are seeing what looks like a different manifestation of the same problem.
02-06-2016