You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2017/10/13 13:45:00 UTC

[jira] [Resolved] (MEECROWAVE-75) MeecrowaveBus unwrapping doesn't work for interfaces

     [ https://issues.apache.org/jira/browse/MEECROWAVE-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved MEECROWAVE-75.
-------------------------------------
    Resolution: Fixed

> MeecrowaveBus unwrapping doesn't work for interfaces
> ----------------------------------------------------
>
>                 Key: MEECROWAVE-75
>                 URL: https://issues.apache.org/jira/browse/MEECROWAVE-75
>             Project: Meecrowave
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>            Priority: Critical
>             Fix For: 1.2.0
>
>
> Consider having a producer method for an interface
> {code}
> @Produces
> @ApplicationScoped
> public MyEndpoint createMyEndpoint() {
>     return JAXRSClientFactory.create(serviceUrl, MyEndpoint.class);
> }
> {code}
> In this case MeecrowaveBus.java blows up because the superclass of an interface is always Object.class.
> {code}
> if (aClass.getName().contains("$$")) {
>             return aClass.getSuperclass();
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)