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=16676>. 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=16676 StackOverflow due to ToStringBuilder ------- Additional Comments From [EMAIL PROTECTED] 2003-03-14 04:04 ------- Here's a failing unit test that I Wrote inside the existing ToStringBuilderTest. I wrote it as a->b->a instead of a->a. Maybe there's a need for both types of tests in the suite. static class ReflectionTestCycleA { ReflectionTestCycleB b; public String toString() { return ToStringBuilder.reflectionToString(this); } } static class ReflectionTestCycleB { ReflectionTestCycleA a; public String toString() { return ToStringBuilder.reflectionToString(this); } } public void testReflectionCycle() throws Exception { ReflectionTestCycleA a = new ReflectionTestCycleA(); ReflectionTestCycleB b = new ReflectionTestCycleB(); a.b = b; b.a = a; assertEquals( toBaseString(a) + "[b=" + toBaseString(b) + "[a=" + toBaseString(a) + "]]", a.toString()); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]