stream may not be closed

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P5
    • 6
    • Affects Version/s: 5.0
    • Component/s: 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));
          }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: