[rules-dev] Major/blocking bug in 5.3.0 and 5.4.0.Beta2

Wolfgang Laun wolfgang.laun at gmail.com
Thu Mar 8 05:58:54 EST 2012


Executing both of the following rules causes an NPE in
RuleTerminalNode.java:

rule "addSet"
no-loop true
when
    $ms: MySet()
then
    modify( $ms ){ add( "three", "four" ) }
    insert( new MySet( "x", "y" ) );
end

rule "xySet"
no-loop true
when
    $ms: MySet()
then
      modify( $ms ){ add( "z" ) }
end

import java.util.*;
public class MySet {
    Set<String> set = new HashSet<>();
    public MySet( String... strings ){
       add( strings );
    }
    public void add( String... strings ){
        for( String s: strings ){
            set.add( s );
}
    }
}

-W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20120308/9a963161/attachment.html 


More information about the rules-dev mailing list