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 2004/09/02 19:12:54 UTC
DO NOT REPLY [Bug 31019] New: -
describe() subject to infinite loop
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31019>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31019
describe() subject to infinite loop
Summary: describe() subject to infinite loop
Product: Commons
Version: Nightly Builds
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: Bean Utilities
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: dan@mojavelinux.com
BeanUtils.describe() has the problem that it can be called infinitely if used
inside of the bean it is describing. For instance, a bean with the following
code will fail:
class MyBean
{
public Map getParameterMap()
{
BeanUtils.describe(this);
}
}
The problem is when the method calls getProperty() on the "parameterMap"
property. I would expect some sort of sanity check as this can bring down the
server with a StackOverflow exception, when it is not entirely obvious why.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org