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

Operation before upper case conversion

XMLWordPrintable

      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-");

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

              Created:
              Updated:
              Resolved: