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

URI and URL getHost() methods don't comform to RFC 2732

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic

      Description

      RFC 2732 has amended RFC 2396 with regard to the definition of host. RFC 2373 section 3 document these changes:
         The following changes to the syntax in RFC 2396 are made:
         (1) change the 'host' non-terminal to add an IPv6 option:

            host = hostname | IPv4address | IPv6reference
            ipv6reference = "[" IPv6address "]"

         where IPv6address is defined as in RFC2373 [ARCH].

      However, right now URI and URL getHost() method implementation doesn't comform to this.

        Attachments

          Activity

            People

            • Assignee:
              ywangsunw Yingxian Wang (Inactive)
              Reporter:
              ywangsunw Yingxian Wang (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: