[jboss-jira] [JBoss JIRA] (DROOLS-1167) Comparison operation error
Mario Fusco (JIRA)
issues at jboss.org
Tue Jul 5 09:38:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261828#comment-13261828 ]
Mario Fusco commented on DROOLS-1167:
-------------------------------------
Sorry, but it's impossible to debug your issue without a complete reproducer. Can you provide one, or at least send the source code of your domain objects?
> Comparison operation error
> --------------------------
>
> Key: DROOLS-1167
> URL: https://issues.jboss.org/browse/DROOLS-1167
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.4.0.Final
> Environment: OracleLinux 6, Java 7/8
> Reporter: Pierangelo Repetti
> Assignee: Mario Fusco
> Attachments: failing_rule.drl
>
>
> I migrated a set of rules from version 5.4 to 6.3. All rules are "Technical rules".
> After migration, I get the following error
> _Unable to Analyse Expression value != 0: [Error: Comparison operation requires compatible types. Found class org.mvel2.util.MethodStub and class java.lang.Integer] [Near : {... value != 0 ....}] ^ [Line: 29, Column: 9]
> _
> on the following line of a rule
> _$imponibile : RuleElement(label=="IMPONIBILE", value != 0, imponibile : value, imponibile_artmap : artmap);_
> RuleElement is a model class (loaded as a dependency) and declares a value attribute like
> _private Double value;_
> The same rule compiled without problems in 5.4.
> Thanks
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list