[rules-users] comparisons on Java primitive wrapper class types

Edson Tirelli tirelli at post.com
Wed Mar 28 14:31:50 EDT 2007


   Brian,

   Can you please provide one example for us to understand better the case?

    Thank you,
     Edson

2007/3/28, wasabifan <bryan.rickman at kewill.com>:
>
>
> In creating a list of rules, I noticed when adding facts to my working
> memory
> it may cause errors if Integer or Long values are null (as they are
> attempting to do comparisons on null objects...even if other conditions
> previously listed in that particular rule eliminate this fact from that
> particular conflicting rule), however, I have not noticed this behavior
> for
> null String objects.  Is this the expected behavior, or should they be
> defaulting to 0 in the comparisons (much like I am assuming the Strings
> must
> be defaulting to empty Strings)?
>
> Thanks for any clarification.  I am using 3.1M1 if that is relevant as
> well.
>
> Bryan
> --
> View this message in context:
> http://www.nabble.com/comparisons-on-Java-primitive-wrapper-class-types-tf3481733.html#a9718377
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> 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 3124-6000
  Mobile: +55 11 9218-4151
  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/20070328/35e10298/attachment.html 


More information about the rules-users mailing list