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

non digit should not be parsed in PORT - should throw exception

XMLWordPrintable

    • sparc
    • solaris_8

      then it should not parse this one also
      sr-cblr03-02:/home/hl130885/testbase 72 % java t1 //@x:/
      Scheme =null
      SchemeSpecificPart =//@x:/
      Fragment =null
      Authority =@x:
      Path =/
      Port =-1
      Host =x
      Query =null
      UserInfo =
      URI is Hirarical
      URI is //@x:/



      hi!
      according to RFC for URI
      Port will be *digit then when ever we will pass and alphabate in String
      for port
      should throw exception
      sr-cblr03-02:/home/hl130885/testbase 73 % java t1 //@x:a/
      Scheme =null
      SchemeSpecificPart =//@x:a/
      Fragment =null
      Authority =@x:a
      Path =/
      Port =-1
      Host =null
      Query =null
      UserInfo =null
      URI is Hirarical
      URI is //@x:a/

            alanb Alan Bateman
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: