[RFR]: 8220575: Replace hardcoded 127.0.0.1 in URLs with new URI builder

Arthur Eubanks aeubanks at google.com
Mon Mar 25 22:18:29 UTC 2019


Hi,

This patch replaces hardcoded "http://127.0.0.1/" in tests with a new
URIBuilder and InetAddress.getLoopbackAddress().getHostAddress(). Creating
a URIBuilder helper class was discussed in a previous thread on net-dev.

http://cr.openjdk.java.net/~aeubanks/8220575/webrev.00/index.html

One problem I came across was in
test/jdk/sun/net/www/protocol/http/B6890349.java, where "/foo\nbar" in a
URL is not the same as "/foo\nbar" in a URI, so I'd like some help in that
one test (you'll see some print statements in there, which produce
different output). Otherwise, the other tests pass locally.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190325/560b85f0/attachment.html>


More information about the net-dev mailing list