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

java.net.URI.parseServerAuthority is not necessary any more and its javadoc has wrong statement

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 6
    • 6
    • core-libs
    • b67
    • generic
    • generic

    Description

      Description of URI.parseServerAuthority contains phrase:

      " This method is provided because the generic URI syntax specified in RFC 3986 cannot always distinguish a malformed server-based authority from a legitimate registry-based authority. It must therefore treat some instances of the former as instances of the latter. The authority component in the URI string "//foo:bar", for example, is not a legal server-based authority but it is legal as a registry-based authority."

      Example above is wrong. Host name can't contain ':' symbol. (Now ':' is a memeber of 'gen-delims').

      It seems that a malformed server-based authority can't be a valid registry-based authority now.
      (RFC 3986 page 55: Registry-based naming authorities that use the generic syntax are now defined within the host rule.) => valid reg-based IS valid host IS valid server-based

      Attachments

        Issue Links

          Activity

            People

              yuwangsunw Yujiang Wang (Inactive)
              itseytin Igor Tseytin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: