changeset 5808:6f2aac9b0471

7081476: test/java/net/InetSocketAddress/B6469803.java failing intermittently Reviewed-by: chegar Contributed-by: Eric Wang <yiming.wang@oracle.com>
author chegar
date Fri, 01 Mar 2013 14:41:39 +0000
parents 494f23e3dac8
children 0c1d463a0406
files test/ProblemList.txt test/java/net/DatagramPacket/ReuseBuf.java
diffstat 2 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/test/ProblemList.txt	Thu Jun 23 13:15:14 2011 +0100
+++ b/test/ProblemList.txt	Fri Mar 01 14:41:39 2013 +0000
@@ -264,9 +264,6 @@
 # 7162118
 java/net/CookieHandler/CookieManagerTest.java			macosx-all
 
-# 7162123
-test/java/net/InetSocketAddress/B6469803.java			macosx-all
-
 # JPRT needs to set 127.0.0.1 in proxy bypass list
 java/net/URLClassLoader/closetest/CloseTest.java		macosx-all
 
--- a/test/java/net/DatagramPacket/ReuseBuf.java	Thu Jun 23 13:15:14 2011 +0100
+++ b/test/java/net/DatagramPacket/ReuseBuf.java	Fri Mar 01 14:41:39 2013 +0000
@@ -29,7 +29,6 @@
  * @summary DatagramPacket spec needs clarification (reuse buf)
  */
 import java.net.*;
-import java.io.*;
 
 public class ReuseBuf {
     static String msgs[] = {"Hello World", "Java", "Good Bye"};
@@ -74,7 +73,7 @@
         DatagramPacket dp = new DatagramPacket(b,b.length);
         for (int i = 0; i < msgs.length; i++) {
             ds.send(new DatagramPacket(msgs[i].getBytes(),msgs[i].length(),
-                                       InetAddress.getByName("LocalHost"),
+                                       InetAddress.getLocalHost(),
                                        port));
             ds.receive(dp);
             if (!msgs[i].equals(new String(dp.getData(), dp.getOffset(), dp.getLength()))) {