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

Operation before upper case conversion

    XMLWordPrintable

    Details

      Description

      In the TlsChannelBinding.java implementation, the string operation is placed before the case conversion. The behavior may be not expected.
                  String hashAlg = serverCertificate.getSigAlgName().
      - replace("SHA", "SHA-").toUpperCase(Locale.ENGLISH);
      + toUpperCase(Locale.ENGLISH).replace("SHA", "SHA-");

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xuelei Xuelei Fan
              Reporter:
              xuelei Xuelei Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: