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

Constraint method is resolved erroneously when potential ambiguities exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.1.0.CR1
    • 5.6.0.Final, 6.1.0.Beta4
    • None

      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

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

                Created:
                Updated:
                Resolved: