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

Null-check-in-finally pattern in java/security documentation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        The examples in the class summary for java.security.KeyStore, java.security.cert.X509CRL, and java.security.cert.X509Certificate contain misleading advice concerning closing file descriptors. See the discussion at http://mail.openjdk.java.net/pipermail/security-dev/2011-June/003344.html for more information. The examples should be changed to use the JDK 7 try-with-resources feature.

          Activity

          Hide
          mullan Sean Mullan added a comment -
          BT2:EVALUATION

          Changed samples to open files in try-with-resources blocks. Also found some examples in java.security.cert.X509Extension which had the same issue.
          Show
          mullan Sean Mullan added a comment - BT2:EVALUATION Changed samples to open files in try-with-resources blocks. Also found some examples in java.security.cert.X509Extension which had the same issue.

            People

            • Assignee:
              mullan Sean Mullan
              Reporter:
              mullan Sean Mullan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: