Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6379189

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • 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);
              }
          }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: