-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
6
-
generic
-
generic
The doRename method unconditionally invokes itself. This would seem to indicate an infinite recursive loop that will result in a stack overflow if setupMode is true.
$ pwd
/local-copy/1.6.0-rc-b69_src/j2se/src/share/classes/com/sun/jndi/ldap
$ tail +143 LdapSchemaCtx.java | head -8
final protected void doRename(Name oldname, Name newname)
throws NamingException {
if (!setupMode) {
throw new SchemaViolationException("Cannot rename a schema object");
} else {
doRename(oldname, newname);
}
}
$ pwd
/local-copy/1.6.0-rc-b69_src/j2se/src/share/classes/com/sun/jndi/ldap
$ tail +143 LdapSchemaCtx.java | head -8
final protected void doRename(Name oldname, Name newname)
throws NamingException {
if (!setupMode) {
throw new SchemaViolationException("Cannot rename a schema object");
} else {
doRename(oldname, newname);
}
}
- duplicates
-
JDK-6266406 Infinite recursive loop in com.sun.jndi.ldap.LdapSchemaCtx
-
- Closed
-