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

Need to put the return clause in the synchronized block

XMLWordPrintable

    • b40
    • generic
    • generic
    • Verified

      Need to put the return clause in the synchronized block, in SSLContextImpl.getSuportedCipherSuiteList() and SSLContextImpl.getDefaultCipherSuiteList():

          // Get suported CipherSuiteList.
          CipherSuiteList getSuportedCipherSuiteList() {
              // The maintenance of cipher suites needs to be synchronized.
              synchronized (this) {
                  // Clear cache of available ciphersuites.
                  clearAvailableCache();

                  if (supportedCipherSuiteList == null) {
                      supportedCipherSuiteList = getApplicableCipherSuiteList(
                              getSuportedProtocolList(), false);
                  }

      + return supportedCipherSuiteList;
              }
      - return supportedCipherSuiteList;
          }

      Similar update to SSLContextImpl.getDefaultCipherSuiteList.

            xuelei Xuelei Fan
            xuelei Xuelei Fan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: