6585239: Regression: 2 DNS tests fail with JDK 5.0u13 b01 and pass with 5.0u12fcs
Reviewed-by: vinnie
--- a/jdk/src/share/classes/com/sun/jndi/dns/DnsContext.java Tue Aug 11 15:36:52 2009 +0800
+++ b/jdk/src/share/classes/com/sun/jndi/dns/DnsContext.java Tue Aug 11 18:27:01 2009 +0800
@@ -972,14 +972,11 @@
}
/*
- * ctx will be closed when no longer needed by the enumeration.
+ * ctx will be set to null when no longer needed by the enumeration.
*/
- public void close () {
+ public void close() {
nodes = null;
- if (ctx != null) {
- ctx.close();
- ctx = null;
- }
+ ctx = null;
}
public boolean hasMore() {