I think Mark was playing with enums. If you don't mind submitting your
test, we should add it to the codebase to prevent this regression in the
future. At least it is fixed in HEAD and we should also check the fix was
backported to 5.2.x branch.

   Thanks for reporting,
    Edson

PS: I like the 5.2 results though... it is more concise... ;)


2011/7/27 Wolfgang Laun <wolfgang.l...@gmail.com>

> Given the following rule replicated for enums EDay.SUNDAY through
> EDay.THURSDAY and
> a single DummyTester fact starting with EDay.SUNDAY.
> rule "Sunday"
>   when
>     $dt:  DummyTester(EDay.SUNDAY == day)
>   then
>     System.out.println("RULE: entered rule:
> "+drools.getRule().getName());
>     modify ($dt) {setDay(EDay.MONDAY)};
> end
>
> On 5.1.1 and using HEAD:
> RULE: entered rule: Sunday
> RULE: entered rule: Monday
> RULE: entered rule: Tuesday
> RULE: entered rule: Wednsday
> RULE: entered rule: Thursday
>
> On 5.2
> RULE: entered rule: Thursday
> RULE: entered rule: Wednsday
>
> Who knows how this was fixed?
>
> Regards
> -W
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>


-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Reply via email to