[rules-users] Bug: Shadow facts
Edson Tirelli
tirelli at post.com
Mon Jul 30 10:09:14 EDT 2007
Arjun,
Can you please open a JIRA and add a self contained test case showing the
problem?
Thank you,
Edson
2007/7/30, Arjun Dhar <dhar_ar at yahoo.com>:
>
> Hi,
> I have an Object 'Configuration'
>
> public class BooleanConfiguration {
> String paramName;
> Boolean value;
> Client client;
> }
>
> I asserted this object and the rule was not executing as I expected.
>
> I put a break point in the object, and found that it set it correctly but
> whenenver the rule engine called the get method the vaue of the object was
> null.
>
> I traced this the place where it creates shadows in Rete.java.
> I had observed a similar behaviour in version 3.1 or 3.6 (if there was a
> 3.6).
> it was more prolific then. I have over 50 objects, only this one is giving
> a
> problem.
>
> I made the class 'final' (This prevents a shadow from being created), and
> voila
> my rule worked as expected.
> Note: None of the otehr objects needed a final, but had comeplex
> associations.
> But this particular object does not run, unless declared final.
>
> The fact that i have to use 'final' for it to work, seals it for me as a
> bug.
>
> thanks,
> Arjun
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070730/590deda3/attachment.html
More information about the rules-users
mailing list