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

Add getByAddress() "wrapper" for getByAddr() to NetworkInterface, InetAddress

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • beta2
    • generic
    • generic



      Name: krC82822 Date: 06/14/2001


      orig synopsis: "Inconsistent name: NetworkInterface.getByAddr()"

      http://java.sun.com/j2se/1.4/docs/api/java/net/NetworkInterface.html

      The name NetworkInterface.getByAddr() is:

      a) Inconsistent with other classes (and NetworkInterface itself):

         NetworkInterface.getInetAddr*ess*es()
         InetAddress.getHostAddr*ess*()
         InetAddress.getAddr*ess*()
         DatagramPacket.setAddr*ess*(InetAddress)
         etc...
         
      b) Ugly ("Addr" is an unacceptable abbreviation because it is hard to
      pronounce, and not in common (verbal) usage).

      Please rename NetworkInterface.getByAddr()
                 to NetworkInterface.getByAddress()

      ----------------

      14 June 2001, eval1127@eng -- actually, InetAddress also has
      a "getByAddr()" method.

      The historical reference is (to) the C equivalent, getbyaddr():

      (Review ID: 126596)
      ======================================================================

            ywangsunw Yingxian Wang (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: