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

MVEL equality is not working as in 5.1.1

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Obsolete
    • 5.2.0.CR1, 5.3.0.Beta1
    • 6.0.0.Alpha1
    • 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)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: