JDK-8145434 : Cleaner - improve example with concrete details
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P5
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2015-12-15
  • Updated: 2021-12-03
  • Resolved: 2021-12-03
Related Reports
Duplicate :  
Relates :  
Description
The example using the Cleaner in java.lang.ref.Cleaner class javadoc
does not show a specific cleanup example.
One suggestion is to use details from a specific use of Cleaner that replaces finalization.