Skip to content

Commit

Permalink
Fix to work with zserio 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi-La committed Nov 28, 2022
1 parent e7e724b commit ea26246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zserio/service/rmi/RMIClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public RMIClient(String serviceFullName, String host, int port) throws RemoteExc
* Implementation of ServiceClientInterface::callMethod.
*/
@Override
public <T extends Writer> byte[] callMethod(String methodName, ServiceData<T> request, Object context)
public byte[] callMethod(String methodName, ServiceData<? extends Writer> request, Object context)
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion src/zserio/service/rmi/RMIServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public RMIServer(ServiceInterface serviceImpl, String serviceFullName)
@Override
public byte[] callMethod(String methodName, byte[] requestData) throws RemoteException
{
final ServiceData<?> serviceData = serviceImpl.callMethod(methodName, requestData, null);
final ServiceData<? extends Writer> serviceData = serviceImpl.callMethod(methodName, requestData, null);
return serviceData.getByteArray();
}

Expand Down

0 comments on commit ea26246

Please sign in to comment.