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

Avoid casting to unnecessary interfaces (Fix the secondary super cache problem in Drools)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • core engine
    • None

    Description

      It’s possible to check for abstract classes instead of the interface for LeftTupleSink, RightTupleSink and Memory, hence avoiding type polluting and interface instanceof.
      When there is not a common parent, for example here, a series of if with an instanceof against different abstract classes is put instead.

      The description of the problem is here

      Attachments

        Issue Links

          Activity

            People

              lmolteni@redhat.com Luca Molteni
              lmolteni@redhat.com Luca Molteni
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: