Red Hat Bugzilla – Bug 1032064
RETE-OO: KieSession.getEntryPoint() returns non-null object for non-declared EntryPoint
Last modified: 2014-08-06 16:18:37 EDT
Created attachment 826057 [details]
Maven project with reproducer
Description of problem:
With RETE, KieSession.getEntryPoint(String) returns a non-null EntryPoint for an entry point which has not been declared. PHREAK returns null, as expected.
Version-Release number of selected component (if applicable):
BRMS 6.0.0 ER4
Run EntryPointTest from the attached Maven project with setting drools engine to RETE:
mvn clean test -Dtest=EntryPointTest -Ddrools.ruleEngine=reteoo
The test passes, when executed with PHREAK:
mvn clean test -Dtest=EntryPointTest -Ddrools.ruleEngine=phreak
The test fails (a non-null entrypoint is returned).
The test passes (null is returned).
Fixed by https://github.com/droolsjbpm/drools/commit/3fe05335c
Verified on BRMS 6.0.0 ER6.