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

URL should have toURI()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P5 P5
    • None
    • 1.4.0, 1.4.1
    • core-libs
    • generic
    • generic



      Name: boT120536 Date: 09/04/2001


      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
      Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)


      The new java.net.URI class has a toURL() method.
      Likewise, java.net.URI should have a toURI() method.
      Since all URLs are URIs, this method won't throw any exceptions,
      but make a URI out of a URI now you have to convert to a String,
      then parse back, and all URI constructors throw an exception,
      so you have to wrap all such conversions in a try/catch block.
      (Review ID: 131229)
      ======================================================================

            michaelm Michael McMahon
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: