[rules-dev] two great bugs
Michael Neale
michael.neale at gmail.com
Mon Apr 9 21:09:27 EDT 2007
I can't think of a better long weekend !
2 bugs !
On 4/8/07, Mark Proctor <mproctor at codehaus.org> wrote:
>
> Found two great bugs this weekend:
>
> http://jira.jboss.com/jira/browse/JBRULES-778 (fixed)
> when
> $p : Person( $cheese : cheese )
> then
> modify( $cheese )
> end
> The above would actually use the $p fact handle for the modify, causing
> the handle to reference $cheese instead of $p. This is now fixed, field
> bindings now have their fact hand cleared, so on modify when the fact
> handle is null it retrieves it from the working memory.
>
> http://jira.jboss.com/jira/browse/JBRULES-780 (in the process of fixing)
> no-loop is currently trapped with:
> // if the current Rule is no-loop and the origin rule is the
> same then return
> if ( this.rule.getNoLoop() && this.rule.equals(
> context.getRuleOrigin() ) ) {
> return;
> }
>
> That means we have a tuple that reached the terminal node, but is not
> added to the memory or an activation created and attached. Thus on a
> modify or a retract the Tuple reaches the RuleTerminalNode and causes a
> NullPointer.
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20070410/599c5060/attachment.html
More information about the rules-dev
mailing list