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

getHostName() throws unexpected exception on Win XP (64)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.4.1
    • core-libs
    • itanium
    • windows_xp

      getHostName() throws unexpected exception on Win Xp (64)

      To Reproduce the failure , run the program below with Hopper b11 on Windows XP(64) Itanium machine .


      -------------------------------------------------------------
      import java.net.*;
      import java.lang.SecurityException;

      public class getHostNameTest{

          getHostNameTest() {

          }

          
          public static void main(String [] args) {
      try{
      InetAddress group = InetAddress.getByName("129.145.155.198");
      String myName = group.getHostName();
      System.out.println("Host name returned " +myName);
      }catch(Exception e){
      System.out.println("Exception :"+e);
      }
          }
      }
      -------------------------------------------------------------

      Error Report file is attached

      Looks like exception is thrown in the native method - 'java.net.Inet4AddressImpl.getHostByAddr(Native Method)'

            Unassigned Unassigned
            saksunw Sreejith Ak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: