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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: