From fe6853c691f8b359a3e6af4d3e00c6e31b0ceace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hynek=20Mlna=C5=99=C3=ADk?= Date: Mon, 21 Nov 2022 08:44:17 +0100 Subject: [PATCH] Update JavaDoc generation to be JDK11 compatible (#15569) Fixes: #15566 --- distribution/api-docs-dist/pom.xml | 1 + federation/sssd/src/main/java/org/jvnet/libpam/PAM.java | 2 +- .../src/main/java/org/jvnet/libpam/impl/PAMLibrary.java | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/distribution/api-docs-dist/pom.xml b/distribution/api-docs-dist/pom.xml index 2772f40285..81e45ca7ba 100755 --- a/distribution/api-docs-dist/pom.xml +++ b/distribution/api-docs-dist/pom.xml @@ -31,6 +31,7 @@ Keycloak ${project.version} + 11 diff --git a/federation/sssd/src/main/java/org/jvnet/libpam/PAM.java b/federation/sssd/src/main/java/org/jvnet/libpam/PAM.java index 190e7b5413..9dbbb9ad2d 100644 --- a/federation/sssd/src/main/java/org/jvnet/libpam/PAM.java +++ b/federation/sssd/src/main/java/org/jvnet/libpam/PAM.java @@ -78,7 +78,7 @@ public class PAM { */ public PAM(String serviceName) throws PAMException { pam_conv conv = new pam_conv(new PamCallback() { - public int callback(int num_msg, Pointer msg, Pointer resp, Pointer _) { + public int callback(int num_msg, Pointer msg, Pointer resp, Pointer _ptr) { LOGGER.debug("pam_conv num_msg=" + num_msg); if (factors == null) return PAM_CONV_ERR; diff --git a/federation/sssd/src/main/java/org/jvnet/libpam/impl/PAMLibrary.java b/federation/sssd/src/main/java/org/jvnet/libpam/impl/PAMLibrary.java index a34ec3184a..f2a16114c0 100644 --- a/federation/sssd/src/main/java/org/jvnet/libpam/impl/PAMLibrary.java +++ b/federation/sssd/src/main/java/org/jvnet/libpam/impl/PAMLibrary.java @@ -116,18 +116,18 @@ public interface PAMLibrary extends Library { * resp and its member string both needs to be allocated by malloc, * to be freed by the caller. */ - int callback(int num_msg, Pointer msg, Pointer resp, Pointer _); + int callback(int num_msg, Pointer msg, Pointer resp, Pointer _ptr); } public PamCallback conv; - public Pointer _; + public Pointer _ptr; public pam_conv(PamCallback conv) { this.conv = conv; } protected List getFieldOrder() { - return Arrays.asList("conv", "_"); + return Arrays.asList("conv", "_ptr"); } }