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

Davide Sottara (JIRA) issues at jboss.org
Mon Jun 22 05:41:02 EDT 2015


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

Davide Sottara reassigned DROOLS-603:
-------------------------------------

    Assignee: Davide Sottara  (was: Mark Proctor)


> 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: Davide Sottara
>
> "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