commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19331] New: - General case for an infinite loop with ToStringBuilder.reflectionToString
Date Fri, 25 Apr 2003 18:29:20 GMT
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


Mime
View raw message