Print this page


Split Close
Expand all
Collapse all
          --- old/test/sun/net/InetAddress/nameservice/B6442088.java
          +++ new/test/sun/net/InetAddress/nameservice/simple/DefaultCaching.java
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20   20   * or visit www.oracle.com if you need additional information or have any
  21   21   * questions.
  22   22   */
  23   23  
  24   24  /* @test
  25   25   * @bug 6442088
  26   26   * @summary Change default DNS caching behavior for code not running under
  27   27   *          security manager.
  28      - *
  29      - * @build B6442088 SimpleNameService SimpleNameServiceDescriptor
  30      - * @run main/othervm/timeout=200 -Dsun.net.inetaddr.ttl=20 -Dsun.net.spi.nameservice.provider.1=simple,sun B6442088
       28 + * @compile -XDignore.symbol.file=true SimpleNameService.java
       29 + *                                     SimpleNameServiceDescriptor.java
       30 + * @run main/othervm/timeout=200 -Dsun.net.inetaddr.ttl=20 -Dsun.net.spi.nameservice.provider.1=simple,sun DefaultCaching
  31   31   */
  32   32  import java.net.InetAddress;
  33   33  import java.net.UnknownHostException;
  34   34  import java.security.Security;
  35   35  
  36      -public class B6442088 {
       36 +public class DefaultCaching {
  37   37  
  38   38      public static void main(String args[]) throws Exception {
  39   39  
  40   40          // name service needs to resolve this.
  41   41          SimpleNameService.put("theclub", "129.156.220.219");
  42   42  
  43   43          test ("theclub", "129.156.220.219", true);      // lk: 1
  44   44          test ("luster", "1.16.20.2", false);            // lk: 2
  45   45  
  46   46          // name service now needs to know about luster
↓ open down ↓ 70 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX