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

(spec) UUID.toString() is unreadable due to '<' which should be '&lt;'

XMLWordPrintable

    • b71
    • generic, x86, sparc
    • generic, linux, solaris_2.6, solaris_9, windows_xp

      > The documentation for java.util.UUID.toString() has a "BNF" section
      > with some things between angle-brackets. They definitely don't look
      > right on a browser. I think each < should be &lt;

      public String toString()

          Returns a String object representing this UUID.

          The UUID string representation is as described by this BNF :

        UUID = "-" "-"
                                  "-"
                                  "-"
                                 
        time_low = 4*
        time_mid = 2*
        time_high_and_version = 2*
        variant_and_sequence = 2*
        node = 6*
        hexOctet =
        hexDigit =
              "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
              | "a" | "b" | "c" | "d" | "e" | "f"
              | "A" | "B" | "C" | "D" | "E" | "F"

      Here's the doc comment:

           /**
           * Returns a <code>String</code> object representing this
           * <code>UUID</code>.
           *
           * <p>The UUID string representation is as described by this BNF :
           * <pre>
           * UUID = <time_low> "-" <time_mid> "-"
           * <time_high_and_version> "-"
           * <variant_and_sequence> "-"
           * <node>
           * time_low = 4*<hexOctet>
           * time_mid = 2*<hexOctet>
           * time_high_and_version = 2*<hexOctet>
           * variant_and_sequence = 2*<hexOctet>
           * node = 6*<hexOctet>
           * hexOctet = <hexDigit><hexDigit>
           * hexDigit =
           * "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
           * | "a" | "b" | "c" | "d" | "e" | "f"
           * | "A" | "B" | "C" | "D" | "E" | "F"
           * </pre>
           *
           * @return a string representation of this <tt>UUID</tt>.
           */
          public String toString() {

      ###@###.### 2005-03-03 16:40:48 GMT

            iris Iris Clark
            dkramersunw Douglas Kramer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: