[rules-dev] Major/blocking bug in 5.3.0 and 5.4.0.Beta2
Mario Fusco
mario.fusco at gmail.com
Thu Mar 8 06:45:37 EST 2012
Thanks for reporting this Wolfgang. I am going to give a look at it just
now.
On Thu, Mar 8, 2012 at 11:58 AM, Wolfgang Laun <wolfgang.laun at gmail.com>wrote:
> 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
>
>
> _______________________________________________
> 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/20120308/d1102a08/attachment.html
More information about the rules-dev
mailing list