--- old/src/share/classes/com/sun/jndi/ldap/LdapSearchEnumeration.java 2011-07-27 17:21:11.324849600 -0700 +++ new/src/share/classes/com/sun/jndi/ldap/LdapSearchEnumeration.java 2011-07-27 17:21:10.671784300 -0700 @@ -53,7 +53,7 @@ } protected NameClassPair - createItem(String dn, Attributes attrs, Vector respCtls) + createItem(String dn, Attributes attrs, Vector respCtls) throws NamingException { Object obj = null; @@ -181,10 +181,10 @@ super.appendUnprocessedReferrals(ex); } - protected LdapNamingEnumeration + protected LdapSearchEnumeration getReferredResults(LdapReferralContext refCtx) throws NamingException { // repeat the original operation at the new context - return (LdapSearchEnumeration) + return (LdapSearchEnumeration)(NamingEnumeration) refCtx.search(searchArgs.name, searchArgs.filter, searchArgs.cons); }