Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1954

issue with using contains operator on array or collection of double (any )

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      When using 'contains' operator on array or collection of strings its working fine. But when we use it for an array of primitive type double it gives a classcastexception . Is auto boxing not supported? May be this is fine as it mentioned in the documentation that it works only on Objects. I tried using the array of Double objects, here it doesn't throw an excpetion but the rule wasn't firing. The behaviour was same even if I use a collection of Double objects.

      ex:
      using Array

      rule "OrderArray"
      when

      Order(valueArray contains 0)

      then
      System.out.println("OrderArray");
      end.

      using Collection

      rule "OrderList"
      when

      Order(valueList contains 0)

      then
      System.out.println("OrderList");
      end.

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            sudhir.cse_jira sudhir Mudundi (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty