Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1233976 - Operators on java.lang.Comparable object doesn't work if JIT is enable
Operators on java.lang.Comparable object doesn't work if JIT is enable
Status: VERIFIED
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE (Show other bugs)
6.1.0
Unspecified Unspecified
unspecified Severity unspecified
: ER4
: 6.2.0
Assigned To: Mario Fusco
Marek Winkler
:
Depends On:
Blocks: 1233978
  Show dependency treegraph
 
Reported: 2015-06-19 18:00 EDT by Alessandro Lazarotti
Modified: 2015-12-21 06:55 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1233978 (view as bug list)
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
reproducer (2.30 KB, application/zip)
2015-06-19 18:03 EDT, Alessandro Lazarotti
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker DROOLS-37 Major Resolved Operators on java.lang.Comparable object doesn't work if JIT is enable 2016-07-05 23:07 EDT

  None (edit)
Description Alessandro Lazarotti 2015-06-19 18:00:44 EDT
Description of problem:
It is the same problem reported at https://issues.jboss.org/browse/DROOLS-37, but it was not really solved.

As commented at: 
https://issues.jboss.org/browse/DROOLS-37?focusedCommentId=12928781&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12928781

.. the fix only works for parameterized types. If the compareTo uses as method signature plain objects, it does not work.

Version-Release number of selected component (if applicable):
6.2


How reproducible:
Always after that JIT is called.

Steps to Reproduce:
1. Run the attached reproducer please. After some cycles the issue happens


Actual results:
Exception in thread "main" java.lang.NoSuchMethodError: org.joda.time.LocalDate.compareTo(Lorg/joda/time/LocalDate;)I
org.drools.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:200)

Expected results:
Rule execution working


Additional info:
Comment 1 Alessandro Lazarotti 2015-06-19 18:03:14 EDT
Created attachment 1041069 [details]
reproducer
Comment 3 Mario Fusco 2015-08-10 10:27:54 EDT
Fixed on master by https://github.com/droolsjbpm/drools/commit/9a94c0c8f
Comment 4 Marek Winkler 2015-10-23 10:10:15 EDT
Verified in BRMS 6.2.0 ER4.

Note You need to log in before you can comment on or make changes to this bug.