diff -r 558590fb3b49 -r 0b4d21bc8b5c jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java --- a/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Wed Oct 21 15:41:42 2009 +0100 +++ b/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Wed Oct 21 15:47:09 2009 +0100 @@ -1552,7 +1552,7 @@ * because ntlm does not support this feature. */ private AuthenticationInfo - resetProxyAuthentication(AuthenticationInfo proxyAuthentication, AuthenticationHeader auth) { + resetProxyAuthentication(AuthenticationInfo proxyAuthentication, AuthenticationHeader auth) throws IOException { if ((proxyAuthentication != null )&& proxyAuthentication.getAuthScheme() != NTLM) { String raw = auth.raw(); @@ -1776,7 +1776,7 @@ /** * Sets pre-emptive proxy authentication in header */ - private void setPreemptiveProxyAuthentication(MessageHeader requests) { + private void setPreemptiveProxyAuthentication(MessageHeader requests) throws IOException { AuthenticationInfo pauth = AuthenticationInfo.getProxyAuth(http.getProxyHostUsed(), http.getProxyPortUsed()); @@ -2132,13 +2132,9 @@ String requestURI = null; - String getRequestURI() { + String getRequestURI() throws IOException { if (requestURI == null) { - try { - requestURI = http.getURLFile(); - } catch (IOException e) { - requestURI = ""; - } + requestURI = http.getURLFile(); } return requestURI; }