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

executable-model test failure in test-compiler-integration UnlinkingTest

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.63.0.Final
    • 7.51.0.Final
    • executable model
    • None
    • 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th)
    • 1
    • Undefined
    • NEW
    • NEW

      UnlinkingTest.multipleJoinsUsingSameOTN()

      14:36:38.678 [main] ERROR o.d.c.k.b.impl.AbstractKieProject.buildKnowledgePackages:276 - Unable to build KieBaseModel:KieBaseModelName
      InvalidExpressionErrorResult: Comparison operation requires compatible types. Found int and interface org.drools.core.util.MethodUtils$NullType
      
      14:36:38.682 [main] ERROR o.d.testcoverage.common.util.KieUtil.getKieBuilderFromKieFileSystem:157 - KieBuilder errors: [Message [id=1, kieBase=KieBaseModelName, level=ERROR, path=test_LRUnlinking.drl, line=-1, column=0
         text=Comparison operation requires compatible types. Found int and interface org.drools.core.util.MethodUtils$NullType]]
      

      This is caused by

      Person(age != null)
      

      where age is a primitive int. However, non-exec-model (mvel) accepts null for comparing. Shall we allow null for mvel compatibility? No, fix the test.

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: