Revision as of 12:12, 15 May 2015 by Mbalin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

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.swing.FilePane
glassfish.common sun.misc.BASE64Encoder
jconsole sun.jvmstat.monitor.*
kenai sun.misc.BASE64Encoder
lib.profiler sun.jvmstat.monitor.*
php.dbgp sun.misc.BASE64Encoder
profiler.heapwalker sun.misc.VM
profiler.snaptracer sun.swing.plaf.synth.SynthIcon 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,
editor sun.awt.AppContext
groovy.editor sun.boot.class.path
j2me.keystore j2me.keystore
lib.profiler.charts sun.swing.SwingUtilities2
o.n.bootstrap sun.awt.AppContext
o.n.swing.dirchooser sun.swing.WindowsPlacesBar,
o.n.swing.plaf sun.swing.plaf.synth.SynthUI
openide.explorer sun.beans.editors.EnumEditor
openide.util sun.awt.AppContext
profiler.oql sun.misc.Ref
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