I did some preliminary investigation and I think the problem is in the FQN of the event class (EventB). It seems like it's incorrectly prefixed with defaultpkg, therefore the MVELExprAnalyzer fails to load the class and read the duration accessor.
### parse : ANTLR4_PARSER_ENABLED = true
09:42:34.157 [Time-limited test] ERROR o.d.c.k.b.impl.AbstractKieProject.buildKnowledgePackages:280 - Unable to build KieBaseModel:defaultKieBase
Error processing @duration for TypeDeclaration 'defaultpkg.org.drools.testcoverage.common.model.org.drools.testcoverage.common.model.EventB': cannot access the field 'duration'
Error processing @duration for TypeDeclaration 'defaultpkg.org.drools.testcoverage.common.model.org.drools.testcoverage.common.model.EventA': cannot access the field 'duration'
java.lang.RuntimeException: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=null, line=-1, column=0
text=Error processing @duration for TypeDeclaration 'defaultpkg.org.drools.testcoverage.common.model.org.drools.testcoverage.common.model.EventB': cannot access the field 'duration'], Message [id=2, kieBase=defaultKieBase, level=ERROR, path=null, line=-1, column=0
text=Error processing @duration for TypeDeclaration 'defaultpkg.org.drools.testcoverage.common.model.org.drools.testcoverage.common.model.EventA': cannot access the field 'duration']]
at org.kie.internal.utils.KieHelper.getKieContainer(KieHelper.java:127)
at org.kie.internal.utils.KieHelper.getKieContainer(KieHelper.java:119)
at org.kie.internal.utils.KieHelper.build(KieHelper.java:79)
at org.drools.testcoverage.regression.FusionAfterBeforeTest.testExpireEventsWhenSharingAllRules(FusionAfterBeforeTest.java:136)
Parent issue
5678
Failing tests
org.drools.testcoverage.regression.FusionAfterBeforeTest#testExpireEventsWhenSharingAllRules
Notes
I did some preliminary investigation and I think the problem is in the FQN of the event class (EventB). It seems like it's incorrectly prefixed with
defaultpkg
, therefore theMVELExprAnalyzer
fails to load the class and read the duration accessor.Rule code snippet
Error output