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] - [lang] General case: infinite loop: ToStringBuilder.reflectionToString
Date Thu, 21 Aug 2003 13:22: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

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





------- Additional Comments From eiichiro.takahashi@ulsystems.co.jp  2003-08-21 13:22 -------
Hello. I found similar bug.
I'm not good at English.
So, if you found "syntax error", please ignore it. ;-)

---------------------------------------------------------------
private static class Alpha{
  private Alpha alpha;
  public Alpha(){
    this.alpha = this;
  }

  public String toString(){
    return ToStringBuilder.reflectionToString(this);
  }
}
---------------------------------------------------------------

This code ends with StackOverflowError. My environment is ...

System.out.println("" + ToStringBuilder.class.getPackage
().getImplementationVersion()); returns "1.0.1".

Thanks.

Mime
View raw message