]
Lisa Horton updated JBRULES-3584:
---------------------------------
Attachment: RulesTester.zip
Unit test to replicate the bug and demonstrate some workarounds.
String comparison fails when using the "==" comparator
------------------------------------------------------
Key: JBRULES-3584
URL:
https://issues.jboss.org/browse/JBRULES-3584
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler
Affects Versions: 5.2.0.Final
Environment: Win 7 / Red Hat Linux, Java 6, Netbeans
Reporter: Lisa Horton
Assignee: Mark Proctor
Labels: compare, drools, string
Attachments: RulesTester.zip
String comparison using the == operator fails in some cases. "Fails" means the
comparison should match but does not. Changing the condition to use equals() operator
causes a successful match. I have observed this in both decision tables and in drl rules.
I will attach a test case that reproduces the bug. There are workarounds to avoid the
bug - the test case demonstrates 3 of them.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: