]
Tom Monnier updated JBRULES-3314:
---------------------------------
Attachment: droolsbug.zip
unit test that reproduces the issue
Incorrect parsing when a fact has a field with same name of field of
referring fact
-----------------------------------------------------------------------------------
Key: JBRULES-3314
URL:
https://issues.jboss.org/browse/JBRULES-3314
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.3.0.CR1
Environment: windows, unit test
Reporter: Tom Monnier
Assignee: Mark Proctor
Attachments: droolsbug.zip
consider following scenario (as used in the attached unit test) with java classes
class Person {}
class PersonWrapper {Person person;}
the rule:
when
$p : Person()
PersonWrapper(person == $p.person)
then
end
should not compile, but is compiled.
When evaluation the '$p.' is stripped, leaving the rule to evaluate
PersonWrapper(person == person)
which always evaluates to true.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: