There is an apparent infinite recursive loop in com.sun.jndi.ldap.LdapSchemaCtx.doRename

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 6
    • Component/s: core-libs

      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);
              }
          }

            Assignee:
            Jayalaxmi Hangal (Inactive)
            Reporter:
            Johann Löfflmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: