[jboss-jira] [JBoss JIRA] (JBRULES-3417) 5.3.x Regression: SuperTypeName for a Declared Type extending reports as Object
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Wed Apr 25 17:59:18 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12687800#comment-12687800 ]
RH Bugzilla Integration commented on JBRULES-3417:
--------------------------------------------------
manstis at redhat.com made a comment on [bug 754093|https://bugzilla.redhat.com/show_bug.cgi?id=754093]
I suspect this relates to the ordering of Declarative model names. The DRL for the attached repository reads:-
4. | declare ChildFact extends ParentFact
5. | childField: Boolean
6. | end
7. |
8. | declare ParentFact
9. | parentField: String
10. | end
Hence we are trying to extend a type before the super-type is declared. This is further substantiated if you try to build the package - it fails :( We need to add some code to order the DRL by parent->child types where one extends another.
> 5.3.x Regression: SuperTypeName for a Declared Type extending reports as Object
> -------------------------------------------------------------------------------
>
> Key: JBRULES-3417
> URL: https://issues.jboss.org/browse/JBRULES-3417
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert)
> Affects Versions: 5.3.1.Final
> Reporter: Michael Anstis
> Assignee: Michael Anstis
> Priority: Blocker
> Fix For: 5.3.2.Final
>
>
> See test DRLParserTest.testDeclaredSuperType(). *5.3.x Branch only*
--
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