[jboss-jira] [JBoss JIRA] (DROOLS-809) NPE when using extend rules with or node and exists

Jonathan MERCIER (JIRA) issues at jboss.org
Mon Jun 8 12:00:04 EDT 2015


     [ https://issues.jboss.org/browse/DROOLS-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan MERCIER updated DROOLS-809:
------------------------------------
    Description: 
Dear
In some case extended rule failed to find  variable.
This occur when using "or", "exists" and "extends" 

A minimal test case is available on [github|https://github.com/bioinfornatics/DROOLS_NPE_rule_extended]

In this [test case |https://github.com/bioinfornatics/DROOLS_NPE_rule_extended/blob/master/src/main/resources/fr.cea.test/rules.drl]:
 if we comment line number 35 , any error are raised
 if we uncomment line number 10 , any error are raised
 if we remove all "exists" words, any error are raised

If the same rule is write using named consequence the test pass.

  was:
Dear
In some case extended rule failed to find  variable.
This occur when using "or", "exists" and "extends" 

A minimal test case is available on [github|https://github.com/bioinfornatics/DROOLS_NPE_rule_extended]

In this [test case |https://github.com/bioinfornatics/DROOLS_NPE_rule_extended/blob/master/src/main/resources/fr.cea.test/rules.drl]:
 if we comment line number 62 , any error are raised
 if we uncomment line number 10 , any error are raised
 if we remove all "exists" words, any error are raised

If the same rule is write using named consequence the test pass.



> NPE when using extend rules with or node and exists
> ---------------------------------------------------
>
>                 Key: DROOLS-809
>                 URL: https://issues.jboss.org/browse/DROOLS-809
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Jonathan MERCIER
>            Assignee: Mark Proctor
>
> Dear
> In some case extended rule failed to find  variable.
> This occur when using "or", "exists" and "extends" 
> A minimal test case is available on [github|https://github.com/bioinfornatics/DROOLS_NPE_rule_extended]
> In this [test case |https://github.com/bioinfornatics/DROOLS_NPE_rule_extended/blob/master/src/main/resources/fr.cea.test/rules.drl]:
>  if we comment line number 35 , any error are raised
>  if we uncomment line number 10 , any error are raised
>  if we remove all "exists" words, any error are raised
> If the same rule is write using named consequence the test pass.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list