InternalAPIsUnavailableInJava9

(Difference between revisions)
Mbalin (Talk | contribs)
(Created page with '=Internal JDK APIs Unavailable In Java 9= With Java 9 comming we have to prepare for several big changes which will affect NetBeans and might break the code. One such change is t…')
Newer edit →

Revision as of 12:12, 15 May 2015

Internal JDK APIs Unavailable In Java 9

With Java 9 comming we have to prepare for several big changes which will affect NetBeans and might break the code. One such change is that bunch of internal APIs from JDK 8 and older will become really JDK internal one and will not be accessible from NetBeans. We have to therefore replace these APIs with new one. This document serves for tracking NetBeans packages which are affected, list some already published replacement/workarounds. We will use to make sure NetBeans version supposed to be running on Java 9 will be ready on time re API usage.

jdeps tool

We used [tool] to search for what Java internal APIs we are using. It lists also some examples what internal API can be replaced by supported public API.

sun.* packages

These will be Java private one and will not be accessible from within NetBeans sources here is the list of NetBeans modules and what sun.* packages were found.

NetBeans module Java API
debugger.jpda sun.reflect.ReflectionFactory
dlight.remote sun.awt.shell.ShellFolder
dlight.remote sun.swing.FilePane
glassfish.common sun.misc.BASE64Encoder
jconsole sun.jvmstat.monitor.*
jconsole sun.management.ConnectorAddressLink
kenai sun.misc.BASE64Encoder
lib.profiler sun.jvmstat.monitor.*
o.n.swing.dirchooser sun.awt.shell.ShellFolder
openide.filesystems sun.security.tools.KeyTool
openide.filesystems sun.security.tools.JarSigner
php.dbgp sun.misc.BASE64Encoder
profiler.heapwalker sun.misc.VM
profiler.snaptracer sun.swing.plaf.synth.SynthIcon
core.network sun.net.spi.DefaultProxySelector
core.network sun.net.NetProperties
core.windows sun.awt.X11.XToolkit, sun.awt.X11.XWM, sun.swing.plaf.synth.SynthIcon
debugger.jpda sun.reflect.DelegatingClassLoader, sun.font.AttributeMap, sun.reflect.ReflectionFactory, sun.awt.X11.XAwtState, sun.awt.X11.XBaseWindow, sun.awt.X11.XToolkit, sun.awt.X11.XAtom
debugger.jpda.visual sun.misc.Launcher$AppClassLoader
dlight.remote sun.swing.WindowsPlacesBar, sun.awt.shell.ShellFolder
editor sun.awt.AppContext
glassfish.common sun.net.NetProperties
groovy.editor sun.boot.class.path
j2me.keystore j2me.keystore
jconsole sun.tools.jconsole.JConsole
lib.profiler.charts sun.swing.SwingUtilities2
o.n.bootstrap sun.awt.AppContext
o.n.swing.dirchooser sun.swing.WindowsPlacesBar, sun.awt.shell.ShellFolder
o.n.swing.plaf sun.swing.plaf.synth.SynthUI
openide.explorer sun.beans.editors.EnumEditor
openide.text sun.awt.im.InputContext, sun.awt.im.InputMethodContext
openide.util sun.awt.AppContext
profiler.oql sun.misc.Ref
sampler sun.management.ThreadInfoCompositeData
spi.editor.hints sun.swing.plaf.synth.SynthIcon
traceio sun.misc.IoTrace
web.jspparser sun.misc.SharedSecrets, sun.misc.ClassLoaderUtil
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo