--- a/jdk/test/java/net/ResponseCache/B6181108.java Tue Jul 20 10:41:50 2010 -0400
+++ b/jdk/test/java/net/ResponseCache/B6181108.java Wed Jul 21 13:29:26 2010 +0100
@@ -67,9 +67,10 @@
out.flush();
s.close();
- ss.close();
} catch (Exception e) {
e.printStackTrace();
+ } finally {
+ try { ss.close(); } catch (IOException unused) {}
}
}
@@ -100,6 +101,7 @@
URLConnection urlc = url.openConnection();
int i = ((HttpURLConnection)(urlc)).getResponseCode();
System.out.println ("response code = " + i);
+ ResponseCache.setDefault(null);
}
public static void main(String args[]) throws Exception {