[jboss-jira] [JBoss JIRA] (JBRULES-3314) Incorrect parsing when a fact has a field with same name of field of referring fact
Tom Monnier (Updated) (JIRA)
jira-events at lists.jboss.org
Wed Dec 14 08:10:09 EST 2011
[ https://issues.jboss.org/browse/JBRULES-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: 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