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 06:39:00 UTC
[jira] [Created] (MEECROWAVE-75) MeecrowaveBus unwrapping doesn't
work for interfaces
Mark Struberg created MEECROWAVE-75:
---------------------------------------
Summary: 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)