[jboss-jira] [JBoss JIRA] (DROOLS-603) Make isA behave like instanceof when non-trait classes are involved

Mario Fusco (JIRA) issues at jboss.org
Mon Jun 22 15:01:03 EDT 2015


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

Mario Fusco reassigned DROOLS-603:
----------------------------------

    Assignee: Mario Fusco  (was: Davide Sottara)


> Make isA behave like instanceof when non-trait classes are involved
> -------------------------------------------------------------------
>
>                 Key: DROOLS-603
>                 URL: https://issues.jboss.org/browse/DROOLS-603
>             Project: Drools
>          Issue Type: Enhancement
>            Reporter: Davide Sottara
>            Assignee: Mario Fusco
>
> "isA" has a similar semantics to "instanceof", but works with combinations of traitable beans, trait proxies and trait classes.
> Currently, it does not work reliably when the left operand is a non-trait(able) object. It may try to access the internal trait data structures, which are not present, potentially throwing exceptions. 
> For these cases, "isA" should not try to resolve trait types, but should fall
> back to the standard java "instanceof" operator.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list