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

Infinite recursive loop in com.sun.jndi.ldap.LdapSchemaCtx

XMLWordPrintable

    • b15
    • generic, x86, sparc
    • generic, solaris_9, windows_xp
    • Not verified

      FULL PRODUCT VERSION :
      java -version
      java version "1.5.0_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
      Java HotSpot(TM) Server VM (build 1.5.0_02-b09, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      SunOS ceti.umiacs.umd.edu 5.9 gspot:s9u2_beta:07/09/2003 sun4u sparc SUNW,Sun-Fire

      A DESCRIPTION OF THE PROBLEM :
      Using our static analysis tool FindBugs, we found an infinite recursive loop in Infinite recursive loop in com.sun.jndi.ldap.LdapSchemaCtx.doRename

      FindBugs is an open source static analysis tool available from:
          http://findbugs.sourceforge.net/
      (note: you need the latest version of FindBugs, version 0.8.7,
      to get the enhanced infinite loop detector that finds this bug).


        final protected void doRename(Name oldname, Name newname)
              throws NamingException {
              if (!setupMode) {
                  throw new SchemaViolationException("Cannot rename a schema object");
              } else {
                  doRename(oldname, newname);
              }
          }



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Invoke the method while in setupMode

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It does something useful
      ACTUAL -
      It goes into an infinite recursive loop, which is terminated by a StackOverflowError.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Don't call the method
      ###@###.### 2005-05-06 10:21:47 GMT

            jhangalsunw Jayalaxmi Hangal (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: