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

stream may not be closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P5 P5
    • 6
    • 5.0
    • security-libs

      investigate whether an IO stream should be closed:

      ---------------------------------------------

      sun.security.provider.JavaKeyStore

          public void engineLoad(InputStream stream, char[] password)
              throws IOException, NoSuchAlgorithmException, CertificateException
          {
      ...
                  if (password != null) {
                      md = getPreKeyedHash(password);
                      dis = new DataInputStream(new DigestInputStream(stream, md));
                  } else {
                      dis = new DataInputStream(stream);
                  }
          }

          public void engineStore(OutputStream stream, char[] password)
              throws IOException, NoSuchAlgorithmException, CertificateException
          {
      ...
                  DataOutputStream dos
                      = new DataOutputStream(new DigestOutputStream(stream, md));
          }

            xuelei Xuelei Fan
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: