]
Pavel Tavoda updated DROOLS-4731:
---------------------------------
Attachment: error-with-long.zip
Working with Long field
-----------------------
Key: DROOLS-4731
URL:
https://issues.jboss.org/browse/DROOLS-4731
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.28.0.Final
Reporter: Pavel Tavoda
Assignee: Mario Fusco
Priority: Major
Attachments: error-with-long.zip
Setting long field value in THEN:
This are two problems:
1) package as kjar 'mvn clean install' result in "Error: unable to resolve
method using strict-mode:
org.drools.core.spi.Activation.setValue(java.lang.Integer)"
RESULT:
IntInRuleJava.drl - FAIL
IntInRuleMvel.drl - FAIL
LongInRuleJava.drl - OK
LongInRuleMvel.drl - FAIL
LongError.gdst - FAIL
2) with 'mvn clean install -DgenerateModel=YES' it result in 'incompatible
types: int cannot be converted to java.lang.Long'
IntInRuleJava.drl - FAIL
IntInRuleMvel.drl - FAIL
LongInRuleJava.drl - OK
LongInRuleMvel.drl - OK
LongError.gdst - FAIL
I don't know how to turn off strict mode for maven plugin. Setting
'drools.dialect.mvel.strict' in kmodule.xml doesn't work.
Example project attached.