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

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

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: