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

A warning should be added to the use of toString in INetAddress

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.1, 1.3.0
    • docs
    • beta
    • generic
    • generic



      Name: vi73552 Date: 05/18/99


      When you create an INetAddress via getByName(), and then subsequently make a call to toString() there is normally no problems. But if the network is down then that call to toString() will result in a major delay to the application (due to the hostName being null in that INetAddress instance).

      We have spent an awful long time tracking this down and did not expect to find that the cause of our problem was the normally innocuous toString method.
      (Review ID: 83189)
      ======================================================================

            ywangsunw Yingxian Wang (Inactive)
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: