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

Project Coin: generate null-check around try-with-resources close call

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 7
    • 7
    • specification
    • b132
    • generic
    • generic
    • Verified

    Description

      After due consideration, the JSR 334 expert group has decided to alter the null-handling semantics of the try-with-resources statement: the automatically generated calls to close will be protected by a null-check.

      That is, try-with-resources will not call close on a resource if the resource is null.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: