Bug 1227274 - Drools invokes superclass static method when running on IBM JDK
Summary: Drools invokes superclass static method when running on IBM JDK
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: ER4
: 6.2.0
Assignee: Mario Fusco
QA Contact: Tibor Zimanyi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-02 09:59 UTC by Tibor Zimanyi
Modified: 2020-03-27 19:13 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:13:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-803 0 Minor Resolved Drools invokes superclass static method when running on IBM JDK 2015-10-27 16:42:18 UTC

Description Tibor Zimanyi 2015-06-02 09:59:50 UTC
Description of problem: When a static method with the same signature is declared by a class and its superclass Drools mistakenly invokes the one of the superclass even when it shouldn't. This happens only on IBM JDK.

How reproducible: Run test Misc2Test.testJittingConstraintInvokingStaticMethod [1] on IBM JDK 6 or 7. 

Actual results: Test [1] fails. 

Expected results: Test [1] not fails. 

Additional info: This ticket is related to [2].

[1] https://github.com/droolsjbpm/drools/blob/6.2.x/drools-compiler/src/test/java/org/drools/compiler/integrationtests/Misc2Test.java#L5215

[2] https://bugzilla.redhat.com/show_bug.cgi?id=1057550

Comment 2 Mario Fusco 2015-06-04 10:49:02 UTC
This issue has been fixed in mvel with this commit https://github.com/mvel/mvel/commit/053b19dfd7d5a293500eb1851da8da1b857bb28c

The fix will be available on drools when a new release of mvel will be deployed.

Comment 3 JBoss JIRA Server 2015-06-04 11:02:37 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-803 to Resolved

Comment 4 Tibor Zimanyi 2015-10-27 16:45:15 UTC
Verified in 6.2.0.ER4.


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