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

ClassCastException during constraint jitting when an interface is used for implementation and traiting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.5.1.Final, 6.0.0.CR5
    • 5.5.0.Final, 6.0.0.CR4
    • None
    • None

      The following combination is needed:

      • an interface IX with at least one getter/setter pair
      • a trait IY extending IX
      • a class K implementing IX
      • a jittable constraint on IX

      The constraint is first triggered by an "instance" of IY,
      but jitted by an instance of K.
      The condition analyzer assumes that IY is the natural
      domain of the constratint, rather than IX. The jitted
      constraint will then try to cast K to IY, resulting in
      a disruptive CCE

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

                Created:
                Updated:
                Resolved: