You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/04/25 20:29:20 UTC

DO NOT REPLY [Bug 19331] New: - General case for an infinite loop with ToStringBuilder.reflectionToString

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19331>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19331

General case for an infinite loop with ToStringBuilder.reflectionToString

           Summary: General case for an infinite loop with
                    ToStringBuilder.reflectionToString
           Product: Commons
           Version: 1.0 Alpha
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: bugzilla@jackwasey.com


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.)

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org