src/share/classes/javax/naming/Context.java

Print this page

        

@@ -276,11 +276,11 @@
  * @author R. Vasudevan
  *
  * @since 1.3
  */
 
-public interface Context {
+public interface Context extends AutoCloseable {
 
     /**
      * Retrieves the named object.
      * If <tt>name</tt> is empty, returns a new instance of this context
      * (which represents the same naming context as this context, but its