apache / incubator-kie-kogito-runtimes

Kogito Runtimes - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
Apache License 2.0
544 stars 209 forks source link

duplicate case value error in getPropertyIndex(String name) method in a class that implements org.drools.model.DomainClassMetadata #1181

Closed rakeshnpatel closed 3 years ago

rakeshnpatel commented 3 years ago

We have a domain model with 2 properties. 1 in the base class and the other in the parent class:

public Resource getResource() {

}

and

public boolean isResource() {

}

when Kogito generates the Metadata class that implements org.drools.model.DomainClassMetadata, in the overridden method getPropertyIndex(String name) it generates duplicate case statement for resource property resulting in duplicate case statement compilation error.

Any workaround or fix for this ?

tkobayas commented 3 years ago

Thank you for reporting! I have filed a JIRA for the issue. https://issues.redhat.com/browse/DROOLS-6442

I'm afraid that there is no good workaround other than changing the property name.

I'm closing this github issue now (as we are mainly watching JIRA, Zulip and Kogito mailing list). Please kindly follow up / comment on the JIRA if necessary.

Thanks again.