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