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

java.net.SocketPermission excepts that an IPv6 address is enclosed in []

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      Name: dfR10049 Date: 05/18/2001



      java.net.SocketPermission(String host, String action) throws
      IllegalArgumentException if host is just IPv6 address.
      It assumes that an IPv6 address is enclosed in []. Javadocs is silent about this.
      This assumption is based on RFC 2732 specified "Format for Literal IPv6 Addresses
      in URL's". So this RFC cannot be default basis for SocketPermission behavior.
      ^^^^^^^^

      Javadoc should explicitly clarify this behavior.

      ======================================================================

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: