commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BEANUTILS-158) BeanUtils describe() subject to infinite loop
Date Fri, 27 Jul 2007 12:06:23 GMT

     [ https://issues.apache.org/jira/browse/BEANUTILS-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niall Pemberton updated BEANUTILS-158:
--------------------------------------

        Fix Version/s: 1.8.0
    Affects Version/s:     (was: Nightly Builds)
                       1.7.0
              Summary: BeanUtils describe() subject to infinite loop  (was: describe() subject
to infinite loop)

> BeanUtils describe() subject to infinite loop
> ---------------------------------------------
>
>                 Key: BEANUTILS-158
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-158
>             Project: Commons BeanUtils
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: Operating System: All
> Platform: All
>            Reporter: Dan Allen
>            Priority: Critical
>             Fix For: 1.8.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message