Uploaded image for project: 'XBean'
  1. XBean
  2. XBEAN-41

Improper abstract bean definitions handling

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.6
    • server, spring
    • None

    Description

      When SpringConfiguration tries to load the config file, it iterates throug the whole list of bean definitions, including abstract ones, and tries to get them by name (using getBean() method). If a bean happens to be declared abstract="true", such call raises the exception. This leads to inability of abstract bean usage. I've created a simple and stupid patch, I am sure authors will come up with something more gentle, but that's enought for me.

      Please incorporate the fix future releases.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--diff.txt
          0.8 kB
          Ilya Bochkov

        Activity

          People

            gnodet Guillaume Nodet
            ibochkov Ilya Bochkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: