[jboss-jira] [JBoss JIRA] (DROOLS-4051) Wrong compiled type definition
Stéphane Tondini (Jira)
issues at jboss.org
Mon May 20 15:45:00 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-4051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735589#comment-13735589 ]
Stéphane Tondini edited comment on DROOLS-4051 at 5/20/19 3:44 PM:
-------------------------------------------------------------------
It seems the following definition works :
{code}
package com.test.rules.model.process;
// Process related objects
declare com.test.rules.model.process.Process
caseRef : String @key
owner : String @key
end
{code}
was (Author: stondini):
It seems the folloeing definition works :
{code}
package com.test.rules.model.process;
// Process related objects
declare com.test.rules.model.process.Process
caseRef : String @key
owner : String @key
end
{code}
> Wrong compiled type definition
> ------------------------------
>
> Key: DROOLS-4051
> URL: https://issues.jboss.org/browse/DROOLS-4051
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.21.0.Final
> Reporter: Stéphane Tondini
> Assignee: Mario Fusco
> Priority: Major
>
> I defined a drl file that declare a type like :
> {code}
> package com.test.rules.model.process;
> // Process related objects
> declare Process
> caseRef : String @key
> owner : String @key
> end
> {code}
> At rules compile time, Drools throws the following exception :
> {code}
> Caused by: java.lang.IllegalArgumentException: Error parsing bootstrap resources : New declaration of java.lang.Process can't declare a different set of fields
> existing : []
> declared : [caseRef]
> diff : [++caseRef]
> Unable to process type Process
> {code}
> Drools compiles *java.lang.Process* instead of my customized type.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list