changeset 1538:aface89bfcf6

6585239: Regression: 2 DNS tests fail with JDK 5.0u13 b01 and pass with 5.0u12fcs Reviewed-by: vinnie
author xuelei
date Tue, 11 Aug 2009 18:27:01 +0800
parents efe2d2a55b3b
children 5b5df0632ecf
files src/share/classes/com/sun/jndi/dns/DnsContext.java
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/jndi/dns/DnsContext.java	Tue Aug 11 15:36:52 2009 +0800
+++ b/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() {