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 2010/09/09 23:55:33 UTC

[jira] Created: (WINK-312) GenericsUtils.isAssignable() cannot handle primitive types

GenericsUtils.isAssignable() cannot handle primitive types
----------------------------------------------------------

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


I added a MessageBodyReader implementation such as:

public class DataBindingJAXRSReader implements MessageBodyReader<Object>

This reader can handle conversions from XML to primitive types and vice versa. Wink finds out the parameter type is Object.class.
If we have a JAX-RS interface which returns long (instead of Long), then the test compatibility is broken as Object.class.isAssignaleFrom(long.class) returns false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WINK-312) GenericsUtils.isAssignable() cannot handle primitive types

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

Raymond Feng updated WINK-312:
------------------------------

    Attachment: wink.patch

> GenericsUtils.isAssignable() cannot handle primitive types
> ----------------------------------------------------------
>
>                 Key: WINK-312
>                 URL: https://issues.apache.org/jira/browse/WINK-312
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.1.2
>            Reporter: Raymond Feng
>         Attachments: wink.patch
>
>
> I added a MessageBodyReader implementation such as:
> public class DataBindingJAXRSReader implements MessageBodyReader<Object>
> This reader can handle conversions from XML to primitive types and vice versa. Wink finds out the parameter type is Object.class.
> If we have a JAX-RS interface which returns long (instead of Long), then the test compatibility is broken as Object.class.isAssignaleFrom(long.class) returns false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-312) GenericsUtils.isAssignable() cannot handle primitive types

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

Hudson commented on WINK-312:
-----------------------------

Integrated in Wink-Trunk-JDK1.5 #381 (See [https://hudson.apache.org/hudson/job/Wink-Trunk-JDK1.5/381/])
    Fix GenericsUtils.isAssignable() to handle primitives

Thanks to Raymond Feng for the patch.

See [WINK-312]


> GenericsUtils.isAssignable() cannot handle primitive types
> ----------------------------------------------------------
>
>                 Key: WINK-312
>                 URL: https://issues.apache.org/jira/browse/WINK-312
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.1.2
>            Reporter: Raymond Feng
>            Assignee: Bryant Luk
>             Fix For: 1.1.2
>
>         Attachments: wink.patch
>
>
> I added a MessageBodyReader implementation such as:
> public class DataBindingJAXRSReader implements MessageBodyReader<Object>
> This reader can handle conversions from XML to primitive types and vice versa. Wink finds out the parameter type is Object.class.
> If we have a JAX-RS interface which returns long (instead of Long), then the test compatibility is broken as Object.class.isAssignaleFrom(long.class) returns false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WINK-312) GenericsUtils.isAssignable() cannot handle primitive types

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

Bryant Luk resolved WINK-312.
-----------------------------

         Assignee: Bryant Luk
    Fix Version/s: 1.1.2
       Resolution: Fixed

Thanks for the patch.

> GenericsUtils.isAssignable() cannot handle primitive types
> ----------------------------------------------------------
>
>                 Key: WINK-312
>                 URL: https://issues.apache.org/jira/browse/WINK-312
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.1.2
>            Reporter: Raymond Feng
>            Assignee: Bryant Luk
>             Fix For: 1.1.2
>
>         Attachments: wink.patch
>
>
> I added a MessageBodyReader implementation such as:
> public class DataBindingJAXRSReader implements MessageBodyReader<Object>
> This reader can handle conversions from XML to primitive types and vice versa. Wink finds out the parameter type is Object.class.
> If we have a JAX-RS interface which returns long (instead of Long), then the test compatibility is broken as Object.class.isAssignaleFrom(long.class) returns false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.