Bug 974364

Summary: Inaccurate comparison because of String to Double coercion
Product: [Retired] JBoss BRMS Platform 6 Reporter: Toshiya Kobayashi <tkobayas>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Winkler <mwinkler>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.x.xCC: mfusco, rzhang
Target Milestone: ER2   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:19:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Toshiya Kobayashi 2013-06-14 05:31:40 UTC
Description of problem:

Platform BZ for https://issues.jboss.org/browse/DROOLS-167

Steps to Reproduce:

import org.drools.compiler.Person;
rule R1
  when
    $p : Person( name < "90201304122000000000000017" )
  then
end

ksession.insert( new Person( "90201304122000000000000015", 38 ) );

Actual results:

The rule is not fired

Expected results:

The rule is fired

Comment 1 JBoss JIRA Server 2013-06-14 05:41:41 UTC
Toshiya Kobayashi <tkobayas> made a comment on jira DROOLS-167

Sent a pull request for a test case.

https://github.com/droolsjbpm/drools/pull/215

Probably it should be converted to BigDecimal or just compared as String.

Comment 2 JBoss JIRA Server 2013-06-17 10:23:41 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-167 to Resolved

Comment 3 JBoss JIRA Server 2013-06-17 10:23:41 UTC
Mario Fusco <mario.fusco> made a comment on jira DROOLS-167

Fixed with mvel 2.1.6

Comment 4 Mario Fusco 2013-07-25 15:21:49 UTC
Fixed.

Comment 5 Marek Winkler 2013-09-02 09:13:23 UTC
Verified on BRMS 6.0.0-ER2.