jdk/test/java/net/Inet4Address/textToNumericFormat.java
changeset 24124 5f5f7f7a4328
parent 24042 82290278c4af
child 30820 0d4717a011d3
equal deleted inserted replaced
24123:7c35c9e15f8e 24124:5f5f7f7a4328
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4749938
    26  * @bug 4749938
    27  * @summary Bug in the parsing IPv4 literal addresses
    27  * @summary Bug in the parsing IPv4 literal addresses
       
    28  * @compile -XDignore.symbol.file=true DummyNameService.java DummyNameServiceDescriptor.java
       
    29  * @run main/othervm -Dsun.net.spi.nameservice.provider.1=dummy,oracle textToNumericFormat
    28 */
    30 */
       
    31 
       
    32 /**
       
    33  * We use a dummy name service which throws UHE any time it is called.
       
    34  * We do this because the "good" tests here should parse correctly
       
    35  * without needing to call the name service, and the bad tests will
       
    36  * not parse and then invoke the name service, where we expect
       
    37  * the exception.
       
    38  */
    29 
    39 
    30 import java.net.InetAddress;
    40 import java.net.InetAddress;
    31 import java.net.UnknownHostException;
    41 import java.net.UnknownHostException;
    32 import java.util.*;
    42 import java.util.*;
    33 
    43