Skip to content

[CI] Java 11 finds fault with Kerberos Javadocs #32461

@droberts195

Description

@droberts195

Java 11 doesn't like the Javadocs for the Kerberos support that was added in #32263.

Mainly it doesn't like @throws with no description, but there's also one incorrect parameter name.

This is the full list of Javadoc problems Java 11 reports:

/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java:136: warning: no description for @throws
> Task :x-pack:plugin:security:compileTestJava
Build cache key for task ':x-pack:plugin:security:compileTestJava' is 9ab3c19b7803bce9bde2e99b98f414c6
     * @throws Exception
       ^
Task ':x-pack:plugin:security:compileTestJava' is not up-to-date because:
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java:149: warning: no description for @throws
     * @throws Exception
       ^
  No history is available.
All input files are considered out-of-date for incremental task ':x-pack:plugin:security:compileTestJava'.
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java:171: error: unknown tag: T
     * @return <T> Type of value as returned by PrivilegedAction
               ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java:172: warning: no description for @throws
     * @throws PrivilegedActionException
       ^
:x-pack:plugin:security:compileTestJava - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosTestCase.java:184: warning: no description for @throws
Compiling with JDK Java compiler API.
     * @throws IOException
       ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/SimpleKdcLdapServer.java:69: warning: no description for @throws
     * @throws Exception
       ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/SimpleKdcLdapServer.java:197: warning: no description for @throws
     * @throws PrivilegedActionException
       ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/SpnegoClient.java:70: warning: no description for @throws
     * @throws PrivilegedActionException
       ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/SpnegoClient.java:71: warning: no description for @throws
     * @throws GSSException
       ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/SpnegoClient.java:102: warning: no description for @throws
     * @throws PrivilegedActionException
       ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/SpnegoClient.java:117: warning: no description for @throws
     * @throws PrivilegedActionException
       ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/SpnegoClient.java:163: error: @param name not found
     * @param settings {@link Settings}
              ^
/var/lib/jenkins/workspace/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA/java11/ES_RUNTIME_JAVA/java10/nodes/virtual&&linux/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/SpnegoClient.java:166: warning: no description for @throws
     * @throws LoginException
       ^

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions