[rules-users] ArrayIndexOutOfBounds exception when predicate parameter is varArgs

Martin A wmlsub at gmail.com
Tue Jan 17 14:26:52 EST 2012


Thanks for your reply Vincent :)

Best regards,
Martin

On Tue, Jan 17, 2012 at 9:08 PM, Vincent Legendre <
vincent.legendre at eurodecision.com> wrote:

> ok, did not know that.
> If you use lists, you can use the 'contains' operator then, instead of
> your predicates (will be more efficient).
>
> But I think it is better to deal with Event objects (will be even more
> efficient, and far much extensible in the future when you will want to
> add more business logic, for example using fusion temporal operators ...).
> And may be that in fact, it is your GameStateController that should be a
> living ksession in where you post events ...
>
>
> Le 17/01/2012 19:58, Martin A a écrit :
> > Hi, Vincent,
> >
> > No, it's actually a List<String> events that is a property of that
> > GameStateController, not Event objects.
> > Ok I will workaround it, but I guess it may be a bug, because I think
> > that varArgs feature was not supported in 5.2.1, and is something new...
> >
> > Best regards,
> > Martin
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120117/f0030e6c/attachment.html 


More information about the rules-users mailing list