-
Bug
-
Resolution: Fixed
-
P3
-
8u66
-
b128
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8169142 | 8u152 | Robert Mckenna | P3 | Resolved | Fixed | b01 |
JDK-8163734 | 8u121 | Robert Mckenna | P3 | Resolved | Fixed | b01 |
JDK-8161406 | 8u112 | Robert Mckenna | P3 | Resolved | Fixed | b03 |
JDK-8162937 | 8u102 | Robert Mckenna | P3 | Resolved | Fixed | b32 |
JDK-8167861 | emb-8u121 | Robert Mckenna | P3 | Resolved | Fixed | b01 |
J2SE Version (please include all output from java -version flag):
java version "1.8.0_66-ea"
Java(TM) SE Runtime Environment (build 1.8.0_66-ea-b02)
Java HotSpot(TM) Client VM (build 25.66-b02, mixed mode, sharing)
Does this problem occur on J2SE 7ux, 8ux? Yes / No (be specific version#)
not work:
* 1.8.0_40
* 1.8.0_66-ea
work with:
* 1.7.0_71
Operating System Configuration Information (be specific):
Only tested on Windows 8, but this should be platform independent.
Bug Description:
If the flag LDAP connection flag javax.naming.Context.REFERRAL is set to
"follow" then the follow unexpected exception occur:
Exception in thread "main" java.lang.ClassCastException:
com.sun.jndi.ldap.LdapSearchEnumeration cannot be cast to
com.sun.jndi.ldap.LdapNamingEnumeration
at
com.sun.jndi.ldap.LdapNamingEnumeration.getReferredResults(LdapNamingEnumerati
on.java:78)
at
com.sun.jndi.ldap.LdapNamingEnumeration.getReferredResults(LdapNamingEnumerati
on.java:36)
at
com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreReferrals(AbstractLdapN
amingEnumeration.java:330)
at
com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreImpl(AbstractLdapNaming
Enumeration.java:227)
at
com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMore(AbstractLdapNamingEnum
eration.java:189)
at
com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreElements(AbstractLdapNa
mingEnumeration.java:117)
at TestLdap.query(TestLdap.java:43)
at TestLdap.main(TestLdap.java:19)
Steps to Reproduce (be specific):
Run the follow test program (attached). You need to change the account
setting. With Java 7 it print 2 numbers. With 8 it print only one number
and then it throw a ClassCastException. The first number is without
"follow". The second which is failing is with "follow".
- backported by
-
JDK-8161406 LDAP "follow" throws ClassCastException with Java 8
-
- Resolved
-
-
JDK-8162937 LDAP "follow" throws ClassCastException with Java 8
-
- Resolved
-
-
JDK-8163734 LDAP "follow" throws ClassCastException with Java 8
-
- Resolved
-
-
JDK-8167861 LDAP "follow" throws ClassCastException with Java 8
-
- Resolved
-
-
JDK-8169142 LDAP "follow" throws ClassCastException with Java 8
-
- Resolved
-
- relates to
-
JDK-7072353 JNDI libraries do not build with javac -Xlint:all -Werror
-
- Resolved
-
(1 relates to)