Bug 1032064

Summary: RETE-OO: KieSession.getEntryPoint() returns non-null object for non-declared EntryPoint
Product: [Retired] JBoss BRMS Platform 6 Reporter: Marek Winkler <mwinkler>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Winkler <mwinkler>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: etirelli, mfusco
Target Milestone: ER6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:18:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Maven project with reproducer none

Description Marek Winkler 2013-11-19 13:35:43 UTC
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):

Drools 6.0.0-SNAPSHOT
BRMS 6.0.0 ER4

How reproducible:

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

Actual results:

The test fails (a non-null entrypoint is returned).

Expected results:

The test passes (null is returned).

Comment 1 Mario Fusco 2013-11-27 14:30:11 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/3fe05335c

Comment 2 Marek Winkler 2014-01-03 14:04:15 UTC
Verified on BRMS 6.0.0 ER6.