test/jdk/java/net/InetAddress/getOriginalHostName.java
changeset 52427 3c6aa484536c
parent 47216 71c04702a3d5
equal deleted inserted replaced
52426:38bf0c9c4e64 52427:3c6aa484536c
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8133196
    26  * @bug 8133196
    27  * @summary test functionality of getOriginalHostName(InetAddress)
    27  * @summary test functionality of getOriginalHostName(InetAddress)
    28  * @modules java.base/jdk.internal.misc
    28  * @modules java.base/jdk.internal.access
    29  */
    29  */
    30 
    30 
    31 import java.io.*;
       
    32 import java.net.InetAddress;
    31 import java.net.InetAddress;
    33 
    32 
    34 import jdk.internal.misc.JavaNetInetAddressAccess;
    33 import jdk.internal.access.JavaNetInetAddressAccess;
    35 import jdk.internal.misc.SharedSecrets;
    34 import jdk.internal.access.SharedSecrets;
    36 
    35 
    37 public class getOriginalHostName {
    36 public class getOriginalHostName {
    38 
    37 
    39     private static final JavaNetInetAddressAccess jna =
    38     private static final JavaNetInetAddressAccess jna =
    40         SharedSecrets.getJavaNetInetAddressAccess();
    39         SharedSecrets.getJavaNetInetAddressAccess();