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

KeyTabEntry, when the byte value smaller then 16, the string drop '0'.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 7
    • 6, 6u10
    • security-libs
    • b81
    • x86
    • windows_xp, windows_7

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      sun.security.krb5.internal.ktab.KeyTabEntry
       
      public String getKeyString() {
        StringBuffer sb = new StringBuffer("0x");
        for (int i = 0; i < keyblock.length; i++) {
         sb.append(Integer.toHexString(keyblock[i] & 0xff));
        }
        return sb.toString();
       }
       
      when the byte value smaller then 16, the string drop '0'.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: