Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8292279

(fs) Use try-with-resources to release NativeBuffer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 20
    • None
    • core-libs
    • b11

      Since JDK-8260966, sun.nio.fs.NativeBuffer implements AutoCloseable interface.
      Now we can use try-with-resources statements to simplify code.

            aturbanov Andrey Turbanov
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: