6585239: Regression: 2 DNS tests fail with JDK 5.0u13 b01 and pass with 5.0u12fcs
authorxuelei
Tue, 11 Aug 2009 18:27:01 +0800
changeset 3485 bc05765c365a
parent 3484 df231966aa41
child 3486 0e14ae32369e
6585239: Regression: 2 DNS tests fail with JDK 5.0u13 b01 and pass with 5.0u12fcs Reviewed-by: vinnie
jdk/src/share/classes/com/sun/jndi/dns/DnsContext.java
--- 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() {