7081476: test/java/net/InetSocketAddress/B6469803.java failing intermittently
Reviewed-by: chegar
Contributed-by: Eric Wang <yiming.wang@oracle.com>
--- a/jdk/test/ProblemList.txt Wed Jul 18 15:19:22 2012 -0700
+++ b/jdk/test/ProblemList.txt Thu Jul 19 18:19:04 2012 +0100
@@ -191,9 +191,6 @@
# 7079145 java/net/ipv6tests/UdpTest.java hang at IPv6 only data exchange
java/net/ipv6tests/UdpTest.java linux-all
-# 7081476
-java/net/InetSocketAddress/B6469803.java generic-all
-
# 7102670
java/net/InetAddress/CheckJNI.java linux-all
--- a/jdk/test/java/net/DatagramPacket/ReuseBuf.java Wed Jul 18 15:19:22 2012 -0700
+++ b/jdk/test/java/net/DatagramPacket/ReuseBuf.java Thu Jul 19 18:19:04 2012 +0100
@@ -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()))) {