Matteo Casalino created DROOLS-5400:
---------------------------------------
Summary: 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
Attachments: serial-version-uid-exec-model.zip
Executable model compilation fails on declared types with both _@SerialVersionUID_ and
_@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)