Bug 1233978 - [GSS](6.1.z) Operators on java.lang.Comparable object doesn't work if JIT is enable
Summary: [GSS](6.1.z) Operators on java.lang.Comparable object doesn't work if JIT is ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: CR1
: 6.1.0
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On: 1233976
Blocks: 1249859 bpms6.1.3-payload
TreeView+ depends on / blocked
 
Reported: 2015-06-19 22:05 UTC by Alessandro Lazarotti
Modified: 2020-03-27 20:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1233976
Environment:
Last Closed: 2020-03-27 20:06:12 UTC
Type: Bug
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-37 0 Major Resolved Operators on java.lang.Comparable object doesn't work if JIT is enable 2016-05-23 10:28:17 UTC

Description Alessandro Lazarotti 2015-06-19 22:05:34 UTC
+++ This bug was initially created as a clone of Bug #1233976 +++

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:

--- Additional comment from Alessandro Lazarotti on 2015-06-19 18:03:14 EDT ---

Comment 1 Alessandro Lazarotti 2015-06-19 22:06:14 UTC
Created attachment 1041070 [details]
reproducer

Comment 3 Mario Fusco 2015-08-10 14:32:55 UTC
Fix cherry-picked to 6.2.x branch by https://github.com/droolsjbpm/drools/commit/42753e200

Comment 5 Marek Winkler 2015-08-31 16:46:34 UTC
Verified in BRMS 6.1.3.CR1.


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