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

Error generating invokers using a declaration having a primitive type

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.4.0.CR1
    • None
    • None
    • None

    Description

      When the value type of a declaration is primitive, the invokers created via mvel templating using that declaration cannot be compiled because they try to do an invalid cast from an Object to a primitive type, generating an error as it follows:

      java.lang.AssertionError: Unable to generate rule invoker. : [Accumulate: input=[AND [[Pattern: id=null; objectType=MyObj]] ]]
      org/drools/Rule_foo_3191b39fd6ce40eaac55301df07acc19AccumulateExpression0Invoker.java (19:754) : Cannot cast from Object to long

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            mfusco@redhat.com Mario Fusco
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty