jdk/test/com/sun/jndi/dns/IPv6NameserverPlatformParsingTest.java
changeset 32036 f7693603b12c
parent 29979 4f003e691877
equal deleted inserted replaced
32035:073a449c007d 32036:f7693603b12c
    29 import javax.naming.spi.NamingManager;
    29 import javax.naming.spi.NamingManager;
    30 
    30 
    31 import com.sun.jndi.dns.DnsContext;
    31 import com.sun.jndi.dns.DnsContext;
    32 
    32 
    33 /**
    33 /**
    34  * @test
       
    35  * @bug 6991580
    34  * @bug 6991580
    36  * @summary IPv6 Nameservers in resolv.conf throws NumberFormatException
    35  * @summary IPv6 Nameservers in resolv.conf throws NumberFormatException
    37  * @run main/manual IPv6NameserverPlatformParsingTest
       
    38  *
       
    39  * In order to run this test be sure to place, for example, the following
       
    40  * snippet into your platform's {@code /etc/resolv.conf}:
       
    41  * <pre>
       
    42  * nameserver 127.0.0.1
       
    43  * nameserver 2001:4860:4860::8888
       
    44  * nameserver [::1]:5353
       
    45  * nameserver 127.0.0.1:5353
       
    46  * </pre>
       
    47  *
       
    48  * Then, run this test as manual jtreg test.
       
    49  *
    36  *
    50  * @author Severin Gehwolf
    37  * @author Severin Gehwolf
    51  *
       
    52  */
    38  */
       
    39 
    53 public class IPv6NameserverPlatformParsingTest {
    40 public class IPv6NameserverPlatformParsingTest {
    54 
    41 
    55     private static boolean foundIPv6 = false;
    42     private static boolean foundIPv6 = false;
    56 
    43 
    57     public static void main(String[] args) {
    44     public static void main(String[] args) {