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

Duplicated synchronized keywords in SSLSocketImpl

    Details

    • Subcomponent:
    • Resolved In Build:
      b14
    • Verification:
      Not verified

      Backports

        Description

        In the following code, two synchronization locks are used. One synchronization lock is sufficient.
            @Override
            public synchronized SSLSession getHandshakeSession() {
                if (conContext.handshakeContext != null) {
                    synchronized (this) {
                        if (conContext.handshakeContext != null) {
                            return conContext.handshakeContext.handshakeSession;
                        }
                    }
                }

                return null;
            }

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  xuelei Xue-Lei Fan
                  Reporter:
                  xuelei Xue-Lei Fan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: