Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-510

Traiting a non-natively traitable bean breaks the assert behavior

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 5.6.0.Final, 6.1.0.Beta4
    • 6.2.0.Beta2
    • None
    • None

    Description

      Only beans implementing the TraitableBean interface can be used with "don" and "shed". If a non-traitable object is processed, the engine creates a proxy to add the required behavior. In versions up to 6.1.B4, this proxy appears EQUAL but not the SAME as the original fact. This will break the lookup of the handle if the user keeps a reference to the original object and tries to use it (e.g. to re-insert or delete the object)

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            dsotty Davide Sottara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: