JDK-8038599 : Move com.sun.java.browser.dom and com.sun.java.browser.net to deploy
  • Type: Bug
  • Component: deploy
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-03-27
  • Updated: 2017-08-02
  • Resolved: 2014-06-11
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.
8u40Fixed 9 b22Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
jdk/src/share/classes/com/sun/java/browser/dom/* and jdk/src/share/classes/com/sun/java/browser/net/* are only used by deploy and plugin.  They are not used by JDK at all.

The JDK javadocs build does generate the javadoc for com.sun.java.browser.dom.* in addition to org.w3c.dom.* APIs:

For modularization, these classes should be part of the deploy module and the deploy repo seems an appropriate home for these classes.
deploy/src/plugin/share/classes/sun/plugin/dom/DOMService.java deploy/src/plugin/share/classes/sun/plugin/dom/DOMServiceProvider.java deploy/src/plugin/share/classes/sun/plugin/net/proxy/PluginProxyInfo.java references com.sun.java.browser.dom.* and com.sun.java.browser.net.* types. There are also tests under deploy/src/plugin/test/src/com/sun/java/plugin/test/dom/. JDK-8044063 depends on the deploy fix to go in JDK 9 first.

com.sun.java.browser.dom was mainly used by old Plug-in (removed under jdk8). We simplified the bootstrapping mechanism for acquiring the Document object under new plug-in and provided one simple entry point i.e. com.sun.java.browser.plugin2.DOM.getDocument, which can be called from applet to get handle to html document . In the failure case, we might fall back to the previous com.sun.java.browser.dom APIs