You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2010/09/10 01:51:36 UTC
[jira] Commented: (WINK-312) GenericsUtils.isAssignable() cannot
handle primitive types
[ 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.