[jboss-jira] [JBoss JIRA] (JBRULES-3594) Unable to extend a declared class if that class has a parent and is declared in another package

Davide Sottara (JIRA) jira-events at lists.jboss.org
Thu Aug 2 22:54:06 EDT 2012


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

Davide Sottara updated JBRULES-3594:
------------------------------------

    Steps to Reproduce: 
Create a knowledge base with:
package p1
declare A extends B ...

Try to compile the following (using the kbase classloader)
package p2
import p1.A;
declare A ... <<<< failure 
declare C extends A ...

"declare A" is currently necessary, but will fail because A needs to extend B
(which the author of the second package might not know or want to restate).
"declare A extends B" fails, too, because it is seen as a new DEFINITION and
not as a REDECLARATION.

    
> Unable to extend a declared class if that class has a parent and is declared in another package
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-3594
>                 URL: https://issues.jboss.org/browse/JBRULES-3594
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler (expert)
>    Affects Versions: 5.4.0.Final
>            Reporter: Davide Sottara
>            Assignee: Davide Sottara
>            Priority: Minor
>             Fix For: 5.5.0.Beta1
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list