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

MVEL equality is not working as in 5.1.1

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

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • 6.0.0.Alpha1
    • 5.2.0.CR1, 5.3.0.Beta1
    • None
    • None

    Description

      There is a different behavior caused by what I think is an MVEL regretion in the version that it's being used in 5.3.0.SNAPSHOT.

      Patient( groupName == "ceftazidime susc islt" || groupName == "ceftfsdfsazidime susc islt") // this doesn't work

      and

      Patient( groupName == "ceftazidime susc islt") // This works!!

      The field groupName is an Object that overrides the method equals following the java convention for comparing objects.

      I'm attaching an isolated unit test showing this problem.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            salaboy@gmail.com Mauricio Salatino (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty