[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1389) using eval after using or causes ClassCastException
Jan Boboli (JIRA)
jira-events at lists.jboss.org
Fri Dec 14 06:13:45 EST 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1389?page=all ]
Jan Boboli updated JBRULES-1389:
--------------------------------
Attachment: Bug.zip
Here is a workspace project with a bug. copy 4.0.3 binaries into lib folder.
> using eval after using or causes ClassCastException
> ---------------------------------------------------
>
> Key: JBRULES-1389
> URL: http://jira.jboss.com/jira/browse/JBRULES-1389
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.3
> Environment: Windows XP, Linux,
> Reporter: Jan Boboli
> Priority: Blocker
> Attachments: Bug.zip
>
>
> when using eval after using or the ClassCastException occurs.
> Here is a code of the rule causing classcast :
> when
> CccObject()
> BbbObject($bbb:bbb)
> $aaa:AaaObject(aaa==$bbb)
> or
> AaaObject(aaa=="ccc")
>
> eval($aaa.getAaa().equals($bbb))
> then
> System.out.println( "Success!!" );
>
> end
> here is the stacktrace:
> org.drools.RuntimeDroolsException: java.lang.ClassCastException: com.sample.CccObjectShadowProxy cannot be cast to com.sample.BbbObject
> at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:76)
> ...
--
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