[jboss-jira] [JBoss JIRA] Issue Comment Edited: (JGRP-1141) RspList: use generics
Bela Ban (JIRA)
jira-events at lists.jboss.org
Thu Apr 21 09:05:18 EDT 2011
[ https://issues.jboss.org/browse/JGRP-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597057#comment-12597057 ]
Bela Ban edited comment on JGRP-1141 at 4/21/11 9:04 AM:
---------------------------------------------------------
Actually, this works anyway. However, user code now has to be changed. Example
{code}
RspList rsps=disp.callRemoteMethods(null, call, new RequestOptions(ResponseMode.GET_ALL, 5000));
for(Map.Entry<Address,Rsp> rsp: rsps.entrySet())
System.out.println(rsp.getKey() + ": " + rsp.getValue().getValue());
{code}
has to be changed to:
{code}
RspList<Date> rsps=disp.callRemoteMethods(null, call, new RequestOptions(ResponseMode.GET_ALL, 5000));
for(Map.Entry<Address,Rsp<Date>> rsp: rsps.entrySet())
System.out.println(rsp.getKey() + ": " + rsp.getValue().getValue());
{code}
was (Author: belaban):
Actually, this works anyway. However, user code now has to be changed. Example
RspList rsps=disp.callRemoteMethods(null, call, new RequestOptions(ResponseMode.GET_ALL, 5000));
for(Map.Entry<Address,Rsp> rsp: rsps.entrySet())
System.out.println(rsp.getKey() + ": " + rsp.getValue().getValue());
has to be changed to:
RspList<Date> rsps=disp.callRemoteMethods(null, call, new RequestOptions(ResponseMode.GET_ALL, 5000));
for(Map.Entry<Address,Rsp<Date>> rsp: rsps.entrySet())
System.out.println(rsp.getKey() + ": " + rsp.getValue().getValue());
> RspList: use generics
> ---------------------
>
> Key: JGRP-1141
> URL: https://issues.jboss.org/browse/JGRP-1141
> Project: JGroups
> Issue Type: Task
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 3.0
>
>
> e.g. RspList<Integer> list=disp.callRemoteMethods(....);
> for(Rsp<Ineteger> rsp: rsps) {
> int counter=rsp.getValue();
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list