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

InetSocketAddress should have equals() & hashCode() as final

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta3
    • generic
    • generic

      Subclasses of SocketAddress are now used in preference to InetAddress when doing
      socket operation. Many security checks are based on comparing addresses. It is therefore important that the comparison between two such objects be guaranteed.
      InetSocketAddress should implement equals() & hashCode() and make them final
      so that the semantic can't be changed in a subclass.

            jccollet Jean-Christophe Collet (Inactive)
            jccollet Jean-Christophe Collet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: