Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-151

[lang] General case: infinite loop: ToStringBuilder.reflectionToString

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • None
    • None
    • Operating System: Windows XP
      Platform: PC

    • 19331

    Description

      Something like the following structure results in an infinite loop:

      cClass Alpha {
      Beta beta;
      public toString() {
      return ToStringBuilder.reflectionToString
      }
      }

      class Beta {
      Alpha alpha;
      public toString()

      { return ToStringBuilder.reflectionToString } }

      Something like the following structure results in an infinite loop:

      cClass Alpha {
      Beta beta;
      public toString() {
      return ToStringBuilder.reflectionToString
      }
      }

      class Beta {
      Alpha alpha;
      public toString() {return ToStringBuilder.reflectionToString} }

      Bug 15976 refers to inner classes - in fact any mutually referential classes
      will spin out into an infinite loop. (Discovered this using two Hibernate
      persistent beans.) refers to inner classes - in fact any mutually referential classes
      will spin out into an infinite loop. (Discovered this using two Hibernate
      persistent beans.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            bugzilla@jackwasey.com Jack Wasey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: