You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Raymond Feng (JIRA)" <ji...@apache.org> on 2011/02/16 01:22:57 UTC

[jira] Created: (WINK-334) Wink doesn't honor the generic type bindings

Wink doesn't honor the generic type bindings
--------------------------------------------

                 Key: WINK-334
                 URL: https://issues.apache.org/jira/browse/WINK-334
             Project: Wink
          Issue Type: Bug
          Components: Common
    Affects Versions: 1.1.2
            Reporter: Raymond Feng


Wink doesn't honor the Java generic type bindings for the following case:

public interface Base<T> {

@Path("{id}"
@GET
T get(@PathParam("id") id);
}

public interface Real extends Base<Customer> {
}

In this case, wink sets Object.class as the type for MessageBody providers. Ideally, it should resolve to Customer.class.

I attach a patch to fix the issue.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WINK-334) Wink doesn't honor the generic type bindings

Posted by "Luciano Resende (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995410#comment-12995410 ] 

Luciano Resende commented on WINK-334:
--------------------------------------

Patch applied under svn revision #1071325, Thanks Raymond.

> Wink doesn't honor the generic type bindings
> --------------------------------------------
>
>                 Key: WINK-334
>                 URL: https://issues.apache.org/jira/browse/WINK-334
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.1.2
>            Reporter: Raymond Feng
>         Attachments: rfeng.patch
>
>
> Wink doesn't honor the Java generic type bindings for the following case:
> public interface Base<T> {
> @Path("{id}"
> @GET
> T get(@PathParam("id") id);
> }
> public interface Real extends Base<Customer> {
> }
> In this case, wink sets Object.class as the type for MessageBody providers. Ideally, it should resolve to Customer.class.
> I attach a patch to fix the issue.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WINK-334) Wink doesn't honor the generic type bindings

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995474#comment-12995474 ] 

Hudson commented on WINK-334:
-----------------------------

Integrated in Wink-Trunk-JDK1.5 #433 (See [https://hudson.apache.org/hudson/job/Wink-Trunk-JDK1.5/433/])
    WINK-334 - Applying patch from Raymong Feng to enhance support for java generics


> Wink doesn't honor the generic type bindings
> --------------------------------------------
>
>                 Key: WINK-334
>                 URL: https://issues.apache.org/jira/browse/WINK-334
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.1.2
>            Reporter: Raymond Feng
>         Attachments: rfeng.patch
>
>
> Wink doesn't honor the Java generic type bindings for the following case:
> public interface Base<T> {
> @Path("{id}"
> @GET
> T get(@PathParam("id") id);
> }
> public interface Real extends Base<Customer> {
> }
> In this case, wink sets Object.class as the type for MessageBody providers. Ideally, it should resolve to Customer.class.
> I attach a patch to fix the issue.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WINK-334) Wink doesn't honor the generic type bindings

Posted by "Raymond Feng (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng updated WINK-334:
------------------------------

    Attachment: rfeng.patch

This is the path. The Java type introspection code is derived from Jackson which is Apache 2 licensed. 

> Wink doesn't honor the generic type bindings
> --------------------------------------------
>
>                 Key: WINK-334
>                 URL: https://issues.apache.org/jira/browse/WINK-334
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.1.2
>            Reporter: Raymond Feng
>         Attachments: rfeng.patch
>
>
> Wink doesn't honor the Java generic type bindings for the following case:
> public interface Base<T> {
> @Path("{id}"
> @GET
> T get(@PathParam("id") id);
> }
> public interface Real extends Base<Customer> {
> }
> In this case, wink sets Object.class as the type for MessageBody providers. Ideally, it should resolve to Customer.class.
> I attach a patch to fix the issue.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (WINK-334) Wink doesn't honor the generic type bindings

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryant Luk resolved WINK-334.
-----------------------------

    Resolution: Fixed
      Assignee: Luciano Resende

Luciano applied Raymond's patch but just doing some bookkeeping in JIRA.

> Wink doesn't honor the generic type bindings
> --------------------------------------------
>
>                 Key: WINK-334
>                 URL: https://issues.apache.org/jira/browse/WINK-334
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.1.2
>            Reporter: Raymond Feng
>            Assignee: Luciano Resende
>         Attachments: rfeng.patch
>
>
> Wink doesn't honor the Java generic type bindings for the following case:
> public interface Base<T> {
> @Path("{id}"
> @GET
> T get(@PathParam("id") id);
> }
> public interface Real extends Base<Customer> {
> }
> In this case, wink sets Object.class as the type for MessageBody providers. Ideally, it should resolve to Customer.class.
> I attach a patch to fix the issue.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira