[jboss-jira] [JBoss JIRA] (DROOLS-5400) Executable model build fails with SerialVersionUID and key annotations
Matteo Casalino (Jira)
issues at jboss.org
Tue Jun 2 12:46:00 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131138#comment-14131138 ]
Matteo Casalino commented on DROOLS-5400:
-----------------------------------------
Note: this is similar to DROOLS-5340, but occurs when the declared type has all its fields annotated with _ at key_
> Executable model build fails with SerialVersionUID and key annotations
> ----------------------------------------------------------------------
>
> Key: DROOLS-5400
> URL: https://issues.redhat.com/browse/DROOLS-5400
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.38.0.Final
> Reporter: Matteo Casalino
> Assignee: Mario Fusco
> Priority: Minor
> Attachments: serial-version-uid-exec-model.zip
>
>
> Executable model compilation fails on declared types with both _ at SerialVersionUID_ and _ at key_ annotations.
> Example of DRL that fails to compile:
> {noformat}
> declare ServiceInformation
> @serialVersionUID( 0 )
> code: String @key
> end
> rule "create new ServiceInformation"
> when
> then
> insert( new ServiceInformation("123456") );
> end
> {noformat}
> Error:
> {noformat}
> Error Messages:
> Message [id=1, kieBase=binding-field-indexed-with-square-brackets, level=ERROR, path=null, line=56, column=0
> text=Duplicate method ServiceInformation(String) in type ServiceInformation]
> Message [id=2, kieBase=binding-field-indexed-with-square-brackets, level=ERROR, path=null, line=61, column=0
> text=Duplicate method ServiceInformation(String) in type ServiceInformation]
> {noformat}
> The example works fine when compiling without executable model.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list