This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit 19b746882e8ce486110f7045233118875c9d9611
Author: Robert Lazarski <[email protected]>
AuthorDate: Sat Apr 11 06:02:15 2026 -1000

    Fix Java 17 compilation errors in OpenApiSpecGenerator
    
    - Line 950: isSystemService() takes AxisService, not String — pass
      the service object instead of svcName
    - Line 1002: SLF4J debug(String, int) resolves to debug(String, Throwable)
      under Java 17 — use string concatenation instead
    
    These errors caused the GitHub Actions Site job to fail.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
 .../src/main/java/org/apache/axis2/openapi/OpenApiSpecGenerator.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/modules/openapi/src/main/java/org/apache/axis2/openapi/OpenApiSpecGenerator.java
 
b/modules/openapi/src/main/java/org/apache/axis2/openapi/OpenApiSpecGenerator.java
index 8c71170c35..33996e5c1a 100644
--- 
a/modules/openapi/src/main/java/org/apache/axis2/openapi/OpenApiSpecGenerator.java
+++ 
b/modules/openapi/src/main/java/org/apache/axis2/openapi/OpenApiSpecGenerator.java
@@ -947,7 +947,7 @@ public class OpenApiSpecGenerator {
             java.util.Map<String, AxisService> services = 
axisConfig.getServices();
             for (AxisService service : services.values()) {
                 String svcName = service.getName();
-                if (isSystemService(svcName)) continue;
+                if (isSystemService(service)) continue;
 
                 // URI: logical identifier for the resource in the MCP 
protocol.
                 // Uses the "axis2://" scheme so clients can distinguish these
@@ -999,7 +999,7 @@ public class OpenApiSpecGenerator {
                 metadata.put("requiresAuth", requiresAuth);
             }
 
-            log.debug("Generated MCP resources JSON ({} services)", 
resources.size());
+            log.debug("Generated MCP resources JSON (" + resources.size() + " 
services)");
             return jackson.writeValueAsString(root);
 
         } catch (Exception e) {

Reply via email to