[
https://issues.redhat.com/browse/DROOLS-5562?page=com.atlassian.jira.plug...
]
Toshiya Kobayashi updated DROOLS-5562:
--------------------------------------
Description:
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/m...
However, I'm not able to write a meaningful test case because DMN type may have
baseType but it results in the same structure (other than collection). 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?)
was:
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/m...
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?)
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/m...
However, I'm not able to write a meaningful test case because DMN type may have
baseType but it results in the same structure (other than collection). 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)