-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
Do a survey of open/src/<module> 'finalize()' usage:
java.base/share/classes/java/lang/Enum.java (keep: empty, final)
java.base/share/classes/java/lang/Object.java (keep: empty, compat)
java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java (empty)
java.desktop/macosx/classes/apple/laf/JRSUIControl.java
java.desktop/macosx/classes/sun/awt/CGraphicsEnvironment.java
java.desktop/macosx/classes/sun/font/CFont.java
java.desktop/macosx/classes/sun/font/CStrike.java
java.desktop/macosx/classes/sun/lwawt/macosx/CFRetainedResource.java
java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterJob.java
java.desktop/share/classes/com/sun/imageio/plugins/common/SubImageInputStream.java (empty)
java.desktop/share/classes/com/sun/imageio/plugins/png/PNGImageWriter.java (empty)
java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFBaseJPEGCompressor.java
java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFJPEGDecompressor.java
java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFOldJPEGDecompressor.java
java.desktop/share/classes/com/sun/imageio/stream/StreamFinalizer.java
java.desktop/share/classes/com/sun/media/sound/AbstractMidiDevice.java
java.desktop/share/classes/com/sun/media/sound/JavaSoundAudioClip.java
java.desktop/share/classes/java/awt/Graphics.java
java.desktop/share/classes/java/awt/PrintJob.java
java.desktop/share/classes/java/awt/color/ICC_Profile.java (empty)
java.desktop/share/classes/java/awt/image/ColorModel.java (empty)
java.desktop/share/classes/java/awt/image/IndexColorModel.java (empty)
java.desktop/share/classes/javax/imageio/spi/ServiceRegistry.java
java.desktop/share/classes/javax/imageio/stream/FileCacheImageInputStream.java (empty)
java.desktop/share/classes/javax/imageio/stream/FileImageInputStream.java (empty)
java.desktop/share/classes/javax/imageio/stream/FileImageOutputStream.java (empty)
java.desktop/share/classes/javax/imageio/stream/ImageInputStreamImpl.java
java.desktop/share/classes/javax/imageio/stream/MemoryCacheImageInputStream.java (empty)
java.desktop/share/classes/javax/swing/text/StringContent.java
java.desktop/share/classes/sun/java2d/SunGraphics2D.java (empty)
java.desktop/share/classes/sun/print/PeekGraphics.java (empty)
java.desktop/share/classes/sun/print/PrintJob2D.java
java.desktop/share/classes/sun/print/ProxyGraphics.java (empty)
java.desktop/share/classes/sun/print/ProxyGraphics2D.java (empty)
java.desktop/unix/classes/sun/awt/X11InputMethodBase.java
java.desktop/windows/classes/sun/awt/windows/WInputMethod.java
java.naming/share/classes/com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java
java.naming/share/classes/com/sun/jndi/ldap/LdapClient.java
java.naming/share/classes/com/sun/jndi/ldap/LdapCtx.java
java.naming/share/classes/com/sun/jndi/ldap/sasl/DefaultCallbackHandler.java
java.rmi/share/classes/sun/rmi/log/LogInputStream.java
java.security.sasl/share/classes/com/sun/security/sasl/CramMD5Base.java
java.security.sasl/share/classes/com/sun/security/sasl/PlainClient.java
java.smartcardio/share/classes/sun/security/smartcardio/CardImpl.java
jdk.crypto.mscapi/windows/classes/sun/security/mscapi/CKey.java
jdk.naming.dns/share/classes/com/sun/jndi/dns/DnsClient.java
jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.java
(RegistryContext.finalize() and BindingEnumeration.finalize())
jdk.security.jgss/share/classes/com/sun/security/sasl/gsskerb/GssKrb5Base.java
jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java
Some are awaiting removal of backward compatible work arounds in a appropriate future release.
- relates to
-
JDK-8195059 Update java.net Socket and DatagramSocket implementations to use Cleaner
- Resolved
-
JDK-8212136 Remove finalizer implementation in SSLSocketImpl
- Resolved
-
JDK-8284368 Remove finalizer method in jdk.crypto.cryptoki
- Resolved
-
JDK-8284490 Remove finalizer method in java.security.jgss
- Resolved
-
JDK-8184744 Replace finalizer in crypto classes with Cleaner
- Resolved
-
JDK-8080225 FileInput/OutputStream/FileChannel cleanup should be improved
- Resolved
-
JDK-8164512 Replace ClassLoader use of finalizer with phantom reference to unload native library
- Resolved
-
JDK-8185582 Update Zip implementation to use Cleaner, not finalizers
- Resolved
-
JDK-8263903 Use Cleaner instead of finalize to auto stop Timer thread
- Resolved
-
JDK-8263905 Remove finalize methods for SocketInput/OutputStream
- Resolved
-
JDK-8297976 Remove sun.net.ProgressMonitor and related classes
- Resolved
-
JDK-8302899 Executors.newSingleThreadExecutor can use Cleaner to shutdown executor
- Resolved
-
JDK-8284855 Update needed to Cleaners added to jdk.crypto.cryptoki
- Resolved
-
JDK-8273102 Delete deprecated for removal the empty finalize() in java.desktop module
- Resolved
-
JDK-8229842 ☂ Eliminate use of deprecated finalize method in JavaFX
- Resolved
-
JDK-8266936 Add a finalization JFR event
- Resolved
-
JDK-8285872 JFR: Remove finalize() methods
- Resolved
-
JDK-8302845 Replace finalizer usage in JNDI DNS provider with Cleaner
- Resolved