Results 1 to 2 of 2

Thread: abstract bean validator errors?

  1. #1
    Join Date
    Apr 2006
    Posts
    1

    Default abstract bean validator errors?

    Just installed 1.3 and I'm getting, what I believe, are invalid errors. I have the following:

    Code:
    <bean abstract="true" id="AbstractFactory"
    		class="my.Manager"
    		factory-method="getService" singleton="false">
    	</bean>
    
    	<bean id="bean" parent="AbstractFactory">
    		<constructor-arg type="java.lang.String"
    			value="valueOne" />
    		<constructor-arg type="java.lang.Class"
    			value="my.class.Name" />
    	</bean>
    Two validation errors, which both are incorrect:

    On bean id 'AbstractFactory' saying there isn't a zero arg static factory method (which there isn't), but this bean is abstract, so there doesn't have to be.

    On bean id 'bean', it says no constructor with two arguments in class my.Manager. Again, this is true, but the constructor args in this case are being used to invoke the factory-method 'getService' which does have the appropriate args.

    I've looked through the tickets and didn't see anything like this, but I can't be sure.

    Anyone else hit something like this?

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Thumbs up

    Thanks for spotting this and providing the test case. I've created a ticket at http://springide.org/project/ticket/294.

    Cheers
    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

Posting Permissions

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