JDK-8371157 : [android] Replace sun.misc.BASE64* with java.util.Base64
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: jfx11,jfx26
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-11-03
  • Updated: 2025-11-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Cloners :  
Relates :  
Description
JDK-8097121 removed all references to sun.misc.BASE64Decoder and sun.misc.BASE64Encoder except for modules/javafx.web/src/android/**

The following file is still using the internal sun.misc.BASE64Encoder class:

modules/javafx.web/src/android/java/javafx/scene/web/WebEngine.java [1]

The sun.misc base64 encoder classes were removed from JDK 9, so this file cannot possibly compile using an unmodified JDK. It should be replaced by using the public java.util.Base64 class.

[1] https://github.com/openjdk/jfx/blob/c77c2335856a967907aaacc9546f44943c069add/modules/javafx.web/src/android/java/javafx/scene/web/WebEngine.java#L478