Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-158

BeanUtils describe() subject to infinite loop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 1.7.0
    • 1.8.0
    • None
    • None
    • Operating System: All
      Platform: All

    • 31019

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dan@mojavelinux.com Dan Allen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: