[jboss-jira] [JBoss JIRA] (DROOLS-509) Constraint method is resolved erroneously when potential ambiguities exist

Mario Fusco (JIRA) issues at jboss.org
Fri Jun 27 05:45:33 EDT 2014


    [ https://issues.jboss.org/browse/DROOLS-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979887#comment-12979887 ] 

Mario Fusco commented on DROOLS-509:
------------------------------------

Also the test case you provided here https://github.com/sotty/drools/commit/a9f767c3eecf918630f10f926ed6553f4073ddf9#diff-70b2034aaa4bb66786671b127de07f80R6154 works for me.

> Constraint method is resolved erroneously when potential ambiguities exist
> --------------------------------------------------------------------------
>
>                 Key: DROOLS-509
>                 URL: https://issues.jboss.org/browse/DROOLS-509
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.6.0.Final, 6.1.0.Beta4
>            Reporter: Davide Sottara
>            Assignee: Mario Fusco
>            Priority: Critical
>             Fix For: 6.1.0.CR1
>
>
> Assume:
> Class X implement I1
> Interface I1 extends I0
> I0 defines the property foo
> Write a rule:
> I1( foo == .. )
> and insert an instance of class X
> The condition analyzer will look in classes first, rather than interfaces, assuming that "foo" is provided by X.
> The next time an instance of some class Y implementing I1 is inserted,
> a ClassCastException will be thrown since X is expected



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list