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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b67
    • CPU:
      generic
    • OS:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: