RFR: 8041621: java/net/Inet4Address/textToNumericFormat.java fails on Solaris and Mac

Michael McMahon michael.x.mcmahon at oracle.com
Mon Apr 28 10:59:27 UTC 2014


This fixes a recent test failure caused by the change 
https://bugs.openjdk.java.net/browse/JDK-8040747
which added some new tests of the literal IP address parsing code. The 
new tests are valid with respect
to the parser, but were failing on some platforms because when the 
parser returns an error, the implementation
must defer to the OS resolver, which can have unpredictable results. The 
solution is to plug in a dummy
name service which throws an exception any time it is called (which is 
what the test expects)

http://cr.openjdk.java.net/~michaelm/8041621/webrev.1/

Thanks,
Michael


More information about the net-dev mailing list