[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1357) RuleBuildContext does not initialize package of rule
Fernando Meyer (JIRA)
jira-events at lists.jboss.org
Mon Feb 18 20:08:26 EST 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1357?page=comments#action_12399800 ]
Fernando Meyer commented on JBRULES-1357:
-----------------------------------------
Could you please attach a unit test for that ?
Thanks
> RuleBuildContext does not initialize package of rule
> ----------------------------------------------------
>
> Key: JBRULES-1357
> URL: http://jira.jboss.com/jira/browse/JBRULES-1357
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Drl Parser/Builder
> Affects Versions: 4.0.1, 4.0.2, 4.0.3
> Environment: n/a
> Reporter: Adrian Sox
>
> When the RuleBuildContext constructs a Query or Rule in its constructor, it does not pass in the package name as a parameter; consequently, Rule.getPackage() always returns null.
> In a related note, Rule.equals() will always return the same value as Object.equals() (owing to the second line), unless the rule is compared with itself. This makes it inconsistent with Rule.hashCode().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list