Announcement Announcement Module
Collapse
No announcement yet.
abstract bean validator errors? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Thanks for spotting this and providing the test case. I've created a ticket at http://springide.org/project/ticket/294.

    Cheers
    Christian

    Comment

    Working...
    X