-
Bug
-
Resolution: Done
-
Minor
-
7.0.0.GA
There is a ClassCastException in org.drools.compiler.integrationtests.SeveralKieSessionsTest.testFamilyWithTwoKieSessionsFromKieContainer when the constraint is jitted:
java.lang.ClassCastException: org.drools.core.rule.constraint.ConditionAnalyzer$SingleCondition cannot be cast to org.drools.core.rule.constraint.ConditionAnalyzer$CombinedCondition
at org.drools.core.rule.constraint.MvelConstraint.calculateMask(MvelConstraint.java:461)
at org.drools.core.rule.constraint.MvelConstraint.getListenedPropertyMask(MvelConstraint.java:407)
at org.drools.core.common.DoubleBetaConstraints.getListenedPropertyMask(DoubleBetaConstraints.java:162)
at org.drools.core.reteoo.BetaNode.initDeclaredMask(BetaNode.java:176)
at org.drools.core.reteoo.LeftTupleSource.initMasks(LeftTupleSource.java:222)
at org.drools.core.reteoo.BetaNode.<init>(BetaNode.java:141)
at org.drools.core.reteoo.JoinNode.<init>(JoinNode.java:38)
at org.drools.core.reteoo.builder.PhreakNodeFactory.buildJoinNode(PhreakNodeFactory.java:115)
at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.buildJoinNode(GroupElementBuilder.java:144)
at org.drools.core.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:110)
at org.drools.core.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:68)
at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:161)
at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:133)
at org.drools.core.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:110)
at org.drools.core.impl.KnowledgeBaseImpl.internalAddRule(KnowledgeBaseImpl.java:1533)
at org.drools.core.impl.KnowledgeBaseImpl.internalAddPackages(KnowledgeBaseImpl.java:915)
at org.drools.core.impl.KnowledgeBaseImpl.lambda$addPackages$1(KnowledgeBaseImpl.java:717)
at org.drools.core.impl.KnowledgeBaseImpl.enqueueModification(KnowledgeBaseImpl.java:734)
at org.drools.core.impl.KnowledgeBaseImpl.addPackages(KnowledgeBaseImpl.java:717)
at org.drools.compiler.kie.builder.impl.AbstractKieModule.createKieBase(AbstractKieModule.java:237)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.createKieBase(KieContainerImpl.java:389)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.getKieBase(KieContainerImpl.java:357)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:501)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:427)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:409)
at org.drools.compiler.integrationtests.SeveralKieSessionsTest.testFamilyWithTwoKieSessionsFromKieContainer(SeveralKieSessionsTest.java:75)