[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:02:03 EDT 2015


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

Mario Fusco closed DROOLS-603.
------------------------------
    Resolution: Done


Fixed by https://github.com/droolsjbpm/drools/commit/e21a01df44c1d265eeebe6066bf27fe09328ae6e and https://github.com/droolsjbpm/drools/commit/d1bda9caa4235a8a45c9d7bf236537d134fd93f1 and https://github.com/droolsjbpm/drools/commit/0faed3931e36a9a6fae61bf53257e0a0be587f33 

> 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