Results 1 to 2 of 2

Thread: Possible bug: Bean name and parent name are the same

  1. #1
    Join Date
    Oct 2004
    Location
    Austin, TX, USA
    Posts
    60

    Default Possible bug: Bean name and parent name are the same

    I'm seeing an odd error with the latest Spring IDE (1.1.0, I believe). I have a bean definition with some nested 'anonymous' bean definitions. When I do so, I get the error message "Bean name and parent name are the same". I tried giving all of them names, but the error remains. Here's a facsimile snippet of my bean definition:

    Code:
    <bean id="DailyRollupDef"
            class="com.example.ReportDefinition">
            <property name="exportParameters">
                <map>
                    <entry key="ReportTitle">
                        <value>My Report</value>
                    </entry>
                </map>
            </property>
            <property name="inputParameters">
                <bean class="com.example.ReportInputParameters">
                    <property name="reportName">
                        <value>DailyRollup</value>
                    </property>
                    <property name="setupProviderName">
                        <value>ReportSetup</value>
                    </property>
                    <property name="recordTypes">
                        <list>
                            <bean
                                class="com.example.DayStatsRecordType">
                                <constructor-arg>
                                    <value>DAY</value>
                                </constructor-arg>
                            </bean>
                        </list>
                    </property>
                </bean>
            </property>
           ...
        </bean>
    Another issue I've seen -- not a show-stopper -- is the bean definitions have to be forward declared. That is, I have to have parent beans declared before their children. This doens't bother Spring and I assumed it was legal...

    Thanks,

    Rob[/code]

  2. #2
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default

    Rob,

    thank you for spotting this. I've created the corresponding tickets:
    http://springide.org/project/ticket/27
    http://springide.org/project/ticket/28

    Cheers,
    Torsten

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •