From 23af02fc503b6e1f2b69c00edb3eff9ad768cd41 Mon Sep 17 00:00:00 2001 From: cyb3r4nt <104218001+cyb3r4nt@users.noreply.github.com> Date: Fri, 24 Oct 2025 02:43:24 +0300 Subject: [PATCH] use different method to obtain HTTP status code in JsonRpcRestClient HttpStatusCodeException.getStatusCode() has been moved in spring-web v6 into parent class RestClientResponseException. This causes missing methods errors if code is compiled with spring-web v5, but is running with spring-web v6. Method RestClientResponseException.getRawStatusCode() is present in both spring-web versions, but it is deprecated in spring-web v6. When jsonrpc4j code migrates to spring-web v6 or higher, then this place will need to migrate back to getStatusCode() method. --- .../jsonrpc4j/spring/rest/JsonRpcRestClient.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/googlecode/jsonrpc4j/spring/rest/JsonRpcRestClient.java b/src/main/java/com/googlecode/jsonrpc4j/spring/rest/JsonRpcRestClient.java index a8063639..ea5fac25 100644 --- a/src/main/java/com/googlecode/jsonrpc4j/spring/rest/JsonRpcRestClient.java +++ b/src/main/java/com/googlecode/jsonrpc4j/spring/rest/JsonRpcRestClient.java @@ -216,14 +216,15 @@ public Object invoke(String methodName, Object argument, Type returnType, Map