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

Constraint method is resolved erroneously when potential ambiguities exist

    XMLWordPrintable

Details

    Description

      Assume:
      Class X implement I1
      Interface I1 extends I0
      I0 defines the property foo

      Write a rule:
      I1( foo == .. )
      and insert an instance of class X

      The condition analyzer will look in classes first, rather than interfaces, assuming that "foo" is provided by X.
      The next time an instance of some class Y implementing I1 is inserted,
      a ClassCastException will be thrown since X is expected

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: