[rules-users] Golfer Example: Why will the example get two equal result ?

Mark Proctor mproctor at codehaus.org
Fri Aug 3 06:27:13 EDT 2007


Is there a bug in the golfer example? Someonew want to submit  patch?

Mark
Dr. Gernot Starke wrote:
> a half answer: I behaved the same in 3.0.6...
>
> imho it's the "unknown" variables that get instantiated differently...
> but I did not investigate much further...
>
> suggestion: ignore - make your own rules behave better :-)
> Gernot
>
>
>   
>> When I test the Golfer example in Drools4.0 environment. I found the rule
>> was matched twice but print same result. I try to override equals() and
>> hashCode() method in Golfer Object, but no change happen. Who can tell me
>> the reason that happened?
>>
>>
>>
>> Thanks.
>>
>> Jason Wang
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>     
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070803/7942dc64/attachment.html 


More information about the rules-users mailing list