cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-6450) Bad handling of JAX-RS generic interfaces
Date Thu, 23 Jul 2015 09:03:04 GMT

    [ https://issues.apache.org/jira/browse/CXF-6450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14638509#comment-14638509
] 

Sergey Beryozkin edited comment on CXF-6450 at 7/23/15 9:02 AM:
----------------------------------------------------------------

See http://git-wip-us.apache.org/repos/asf/cxf/commit/05a01d69

Works fine, what is different in your case (except for List of String as opposed to List of
SuperBook) and what does not work in the 1st place ?

FYI, look at GenericBookStoreSpringInt2 + GenericBookServiceInterface + GenericBookInterface


was (Author: sergey_beryozkin):
See http://git-wip-us.apache.org/repos/asf/cxf/commit/05a01d69

Works fine, what is different in your case (except for List of String as opposed to List of
SuperBook) and what does not work in the 1st place ?

> Bad handling of JAX-RS generic interfaces
> -----------------------------------------
>
>                 Key: CXF-6450
>                 URL: https://issues.apache.org/jira/browse/CXF-6450
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.0
>            Reporter: Vladimir Kulev
>         Attachments: InjectionUtils.patch
>
>
> Here is a simple example of the code which does *not* work as intended:
> {code:java}
> interface GenericInterface<A> {
>     @GET
>     List<A> list();
> }
> interface ServiceInterface extends GenericInterface<String> {}
> public static class TestService implements ServiceInterface {
>     @Override
>     public List<String> list() {
>         return new ArrayList<>();
>     }
> }
> {code}
> I have found that the shape of {{InjectionUtils}} is pretty bad, so please accept this
patch slightly improving the situation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message