Bug 1293587

Summary: Error jitting a compareTo constraint
Product: [Retired] JBoss BRMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.2.0   
Target Milestone: DR1   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1294424 (view as bug list) Environment:
Last Closed: 2020-03-27 19:02:03 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:
Bug Depends On:    
Bug Blocks: 1294424    
Attachments:
Description Flags
[0] reproducer none

Description Anton Giertli 2015-12-22 09:48:48 UTC
Created attachment 1108600 [details]
[0] reproducer

Description of problem:

Since this issue was reported by a customer, I have created bugzilla which covers this JIRA
https://issues.jboss.org/browse/DROOLS-1013.

When the implementation of the Comparable interface is not directly declared by a Class, but the Class implements another interface that transitively extends Comparable the jitting of a constraint doing a compareTo on that class fails with the following exception:

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

BRMS 6.2.0
How reproducible:

always
Steps to Reproduce:
1. Run the reproducer
2.
3.

Actual results:

Reproducer fails with methodnotfound error
Expected results:
Reproducer does not fail

Additional info:

Comment 1 Anton Giertli 2015-12-22 09:50:05 UTC
This is not the same issue as reported in here
https://bugzilla.redhat.com/show_bug.cgi?id=1233976

the reproducer attached in here, fails when using 6.2.0

There is one workaround available - disable jitting.
System.setProperty("drools.jittingThreshold", "-1");


This workaround is only applicable on 6.2.0 and not for previous versions.

Comment 5 Marek Winkler 2016-03-18 14:26:39 UTC
Verified in BRMS 6.3.0.ER1.