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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to