[jboss-jira] [JBoss JIRA] (DROOLS-665) Cannot extends rule from another one with the same package name

Gajendra Jore (Jira) issues at jboss.org
Wed Jul 3 02:31:00 EDT 2019


    [ https://issues.jboss.org/browse/DROOLS-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13755065#comment-13755065 ] 

Gajendra Jore commented on DROOLS-665:
--------------------------------------

Hi,

I am facing same issue on version 7.22.0.

Steps to reproduce:
1. Create parent.drl file contains parent rule as
2. Create  child.drl file with child rule extends parent rule.
3. *+Both files have same package name+*.
4. While creating KieBase it throws exception from *newKnowledgeBase()* method of *KnowledgeBuilderImpl.java * class and exception is as follows,
 *Unable to resolve parent rule, please check that both rules are in the same package : [Rule name='childRule']
Unresolved parent name parentRule*

Thanks,
Gajendra


> Cannot extends rule from another one with the same package name
> ---------------------------------------------------------------
>
>                 Key: DROOLS-665
>                 URL: https://issues.jboss.org/browse/DROOLS-665
>             Project: Drools
>          Issue Type: Bug
>    Affects Versions: 6.0.0.Final, 6.2.0.CR3
>            Reporter: Yacine Jaber
>            Assignee: Mario Fusco
>            Priority: Major
>         Attachments: wod-drools-test.7z
>
>
> When I extends a rule from another one with the same package, but into two differents .drl files. I got the following message :
> Unable to resolve parent rule, please check that both rules are in the same package.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list