[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1437) DOT notation gives an error
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Fri Jan 25 14:23:21 EST 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1437?page=all ]
Edson Tirelli closed JBRULES-1437.
----------------------------------
Fix Version/s: 5.0.0-M1
Resolution: Done
Fixed. Test case added.
> DOT notation gives an error
> ---------------------------
>
> Key: JBRULES-1437
> URL: http://jira.jboss.com/jira/browse/JBRULES-1437
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Reteoo
> Affects Versions: 4.0.4
> Reporter: Toni Rikkola
> Assigned To: Edson Tirelli
> Fix For: 5.0.0-M1
>
>
> Following rule gave an java.lang.ClassCastException: org.drools.analytics.report.components.RedundancyShadowProxy cannot be cast to org.drools.analytics.components.RulePossibility exeption.
> The bug was found when creating subsumption rules for analytics.
> rule "Find subsumptant rule possibilities"
> when
> $redundancy :Redundancy(
> left.causeType == CauseType.RULE,
> $leftRuleId :left.id,
> $rightRuleId :right.id
> )
>
> # Find two RulePossibilities.
> $rp1 :RulePossibility(
> ruleId == $leftRuleId
> )
> $rp2 :RulePossibility(
> ruleId == $rightRuleId
> )
>
> # For every pattern possibility in $rp1 there is a redundant pattern possibility in $rp2.
> forall(
> $pp :PatternPossibility(
> ruleId == $rp1.ruleId,
> this memberOf $rp1.items
> )
> )
>
> exists(
> Subsumption(
> )
> or
> Redundancy(
> )
> )
>
>
> then
> System.out.println("pim");
> end
> First tought that this was caused by or operator in exists, but tirelli found out that it is caused by a DOT notation.
--
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