[jboss-jira] [JBoss JIRA] (DROOLS-5562) Confirm strongly typed inheritance use case
Toshiya Kobayashi (Jira)
issues at jboss.org
Thu Aug 6 01:46:00 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Toshiya Kobayashi updated DROOLS-5562:
--------------------------------------
Attachment: inheritType.dmn
> Confirm strongly typed inheritance use case
> -------------------------------------------
>
> Key: DROOLS-5562
> URL: https://issues.redhat.com/browse/DROOLS-5562
> Project: Drools
> Issue Type: Task
> Components: dmn engine
> Affects Versions: 7.41.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Toshiya Kobayashi
> Priority: Minor
> Attachments: inheritType.dmn
>
>
> Generated class may have a super type which is a baseType of the DMN type. Firstly, I think I should fix the order of this logic (call ucFirst() at last).
> https://github.com/kiegroup/drools/blob/master/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredType.java#L86-L87
> However, I'm not able to write a meaningful test case because DMN type may have baseType but it results in the same structure. See tEmployee in inheritType.dmn
> If we want to allow Employee class to extends Person class, we will need some more fixes in class generation (currently, Employee has its own fields like name, age. Make super class fields protected? or access super class's fields with getter?)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list