[
https://issues.jboss.org/browse/JBRULES-3584?page=com.atlassian.jira.plug...
]
Lisa Horton commented on JBRULES-3584:
--------------------------------------
I had time this morning to download 5.4.0.Final and my unit tests all pass using the
current version. Sorry for wasting your time with this bug from an old release.
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:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira