[jboss-jira] [JBoss JIRA] (JBRULES-3584) String comparison fails when using the "==" comparator
Lisa Horton (JIRA)
jira-events at lists.jboss.org
Wed Jul 25 14:12:07 EDT 2012
Lisa Horton created JBRULES-3584:
------------------------------------
Summary: 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
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
More information about the jboss-jira
mailing list