src/java.naming/share/classes/com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java
changeset 51564 0f8e680269d4
parent 47216 71c04702a3d5
equal deleted inserted replaced
51563:de411d537aae 51564:0f8e680269d4
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   310      */
   310      */
   311     protected final boolean hasMoreReferrals() throws NamingException {
   311     protected final boolean hasMoreReferrals() throws NamingException {
   312 
   312 
   313         if ((refEx != null) &&
   313         if ((refEx != null) &&
   314             (refEx.hasMoreReferrals() ||
   314             (refEx.hasMoreReferrals() ||
   315              refEx.hasMoreReferralExceptions())) {
   315              refEx.hasMoreReferralExceptions()
       
   316                 && !(errEx instanceof LimitExceededException))) {
   316 
   317 
   317             if (homeCtx.handleReferrals == LdapClient.LDAP_REF_THROW) {
   318             if (homeCtx.handleReferrals == LdapClient.LDAP_REF_THROW) {
   318                 throw (NamingException)(refEx.fillInStackTrace());
   319                 throw (NamingException)(refEx.fillInStackTrace());
   319             }
   320             }
   320 
   321