Bug 1032064 - RETE-OO: KieSession.getEntryPoint() returns non-null object for non-declared EntryPoint
Summary: RETE-OO: KieSession.getEntryPoint() returns non-null object for non-declared ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER6
: 6.0.0
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-19 13:35 UTC by Marek Winkler
Modified: 2014-08-06 20:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:18:37 UTC
Type: Bug


Attachments (Terms of Use)
Maven project with reproducer (13.96 KB, application/zip)
2013-11-19 13:35 UTC, Marek Winkler
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.