[jboss-jira] [JBoss JIRA] (DROOLS-291) ClassCastException during constraint jitting when an interface is used for implementation and traiting

Mario Fusco (JIRA) jira-events at lists.jboss.org
Tue Oct 8 06:13:03 EDT 2013


     [ https://issues.jboss.org/browse/DROOLS-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco reassigned DROOLS-291:
----------------------------------

    Assignee: Mario Fusco  (was: Mark Proctor)

    
> ClassCastException during constraint jitting when an interface is used for implementation and traiting
> ------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-291
>                 URL: https://issues.jboss.org/browse/DROOLS-291
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.5.0.Final,  6.0.0.CR4
>            Reporter: Davide Sottara
>            Assignee: Mario Fusco
>            Priority: Critical
>
> The following combination is needed:
> - an interface IX with at least one getter/setter pair
> - a trait IY extending IX
> - a class K implementing IX
> - a jittable constraint on IX
> The constraint is first triggered by an "instance" of IY, 
> but jitted by an instance of K.
> The condition analyzer assumes that IY is the natural
> domain of the constratint, rather than IX. The jitted
> constraint will then try to cast K to IY, resulting in
> a disruptive CCE

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list