superclass consequence overrides subclass
-----------------------------------------

         Key: DROOLS-479
         URL: http://jira.codehaus.org/browse/DROOLS-479
     Project: drools
        Type: Bug

  Components: spring  
    Versions: 2.1    
 Environment: windows, binary plus dependant libraries
    Reporter: Derrick Oswald
 Assigned to: bob mcwhirter 


The example HelloWorldSpringOuterPojosExample doesn't work because the 
setMessagePrinter method is added as a consequence:

Feb 8, 2006 10:11:54 PM org.drools.spring.factory.RuleBuilder buildRule
INFO: Consequence method added to rule: public void 
ruletestapplication.HelloRule.consequence(java.lang.String)
Feb 8, 2006 10:11:54 PM org.drools.spring.factory.RuleBuilder buildRule
INFO: Condition method added to rule: public boolean 
ruletestapplication.HelloRule.condition(java.lang.String)
Feb 8, 2006 10:11:54 PM org.drools.spring.factory.RuleBuilder buildRule
INFO: Consequence method added to rule: public void 
ruletestapplication.HelloRule.setMessagePrinter(ruletestapplication.MessagePrinter)
Feb 8, 2006 10:11:54 PM org.drools.spring.factory.RuleBuilder buildRule

The setMessagePrinter method comes from the parent specification:

                <bean id="outer.Hello" 
                    parent="messagePrintingBean" 
class="ruletestapplication.HelloRule" />


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to