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

UUID.fromString throws NumberFormatException

XMLWordPrintable

    • b56
    • x86
    • windows_2000



      Name: js151677 Date: 05/31/2004


      A DESCRIPTION OF THE REQUEST :
      UUID.fromString throws NumberFormatException. I'd think hiding the implementation would be better. So throwing a UUIDFormationException or the like would hide the internal use of Long.

      JUSTIFICATION :
      Hide implementation.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      throw a UUID specific exception
      ACTUAL -
      throws NumberFormatException

      ---------- BEGIN SOURCE ----------
      UUID myUUID = UUID.fromString("G47fa190-b209-11d8-bc4e-95ef8f69921e");
      ---------- END SOURCE ----------
      (Incident Review ID: 275673)
      ======================================================================

            mmcclosksunw Michael Mccloskey (Inactive)
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: