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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          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: