JDK-7188847 : Network tests need public hosts by default
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2012-08-02
  • Updated: 2012-08-03
  • Resolved: 2012-08-03
Related Reports
Duplicate :  
Description
This is a SUNBUG for https://bugs.openjdk.java.net/show_bug.cgi?id=100066

Description

Created an attachment (id=84) [details]
Use public hosts for network tests patch

The current default hosts in TestEnv aren't public machines. This patch makes
sets the defaults to publicly accessible hosts (you can of course still set
private local non-public hosts if you wish through the test environment).

I also made sure the cname.sh test uses the far_host to do its tests instead of
a hardcoded one. And I changed the SocketChannel LocalAddress and Shutdown
tests to use the echo service. Since the echo service already has to be enabled
for other tests and it seemed easier for a public host setup to not have to
open up a telnet port.

All the tests using TestEnv now PASS by default without needing to change any
settings. This has been in use in IcedTea for more than half a year now with
good results. It would be nice to get this in OpenJDK to keep the divergence to
a minimum.

See also the discussion on the mailinglist:
http://mail.openjdk.java.net/pipermail/jdk6-dev/2008-November/000268.html

Comments
EVALUATION We don't intend to forward-port the TestEnv changes from 6open to jdk8. Instead we would prefer to change the tests so that they don't depend on other hosts. This work is tracked by 6720349.
03-08-2012