--- old/src/share/classes/com/sun/jndi/toolkit/dir/ContextEnumerator.java 2011-07-27 17:24:06.646380000 -0700 +++ new/src/share/classes/com/sun/jndi/toolkit/dir/ContextEnumerator.java 2011-07-27 17:24:05.999315300 -0700 @@ -33,10 +33,10 @@ * * @author Jon Ruiz */ -public class ContextEnumerator implements NamingEnumeration { +public class ContextEnumerator implements NamingEnumeration { private static boolean debug = false; - private NamingEnumeration children = null; + private NamingEnumeration children = null; private Binding currentChild = null; private boolean currentReturned = false; private Context root; @@ -77,7 +77,7 @@ } // Subclass should override if it wants to avoid calling obj factory - protected NamingEnumeration getImmediateChildren(Context ctx) + protected NamingEnumeration getImmediateChildren(Context ctx) throws NamingException { return ctx.listBindings(""); } @@ -101,7 +101,7 @@ } } - public Object nextElement() { + public Binding nextElement() { try { return next(); } catch (NamingException e) { @@ -109,7 +109,7 @@ } } - public Object next() throws NamingException { + public Binding next() throws NamingException { if (!rootProcessed) { rootProcessed = true; return new Binding("", root.getClass().getName(), @@ -132,7 +132,7 @@ } private Binding getNextChild() throws NamingException { - Binding oldBinding = ((Binding)children.next()); + Binding oldBinding = children.next(); Binding newBinding = null; // if the name is relative, we need to add it to the name of this @@ -192,7 +192,7 @@ if(debug) {System.out.println("getNextDescedant: expanded case");} // if the current child is expanded, use it's enumerator - return (Binding)currentChildEnum.next(); + return currentChildEnum.next(); } else {