-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[BUG] Invalid javadoc in PaginationStrategy class prevents OpenSearch compiling with javadocs #16374
Description
Describe the bug
The PaginationStrategy class has javadoc errors using @param inline in three places:
OpenSearch/server/src/main/java/org/opensearch/action/pagination/PaginationStrategy.java
Line 48 in 4456d55
| * Utility method to get list of indices filtered as per {@param filterPredicate} and the sorted according to {@param comparator}. |
OpenSearch/server/src/main/java/org/opensearch/action/pagination/PaginationStrategy.java
Line 60 in 4456d55
| * Utility method to get list of indices sorted as per {@param comparator}. |
These prevent a Gradle compile task from completing successfully without warning-mode disabled.
Related component
Other
To Reproduce
- In a GitHub action, Checkout OpenSearch and assemble.
- Observe compile failure
/home/runner/work/opensearch-sdk-py/opensearch-sdk-py/opensearch/server/src/main/java/org/opensearch/action/pagination/PaginationStrategy.java:48: error: no tag name after @
* Utility method to get list of indices filtered as per {@param filterPredicate} and the sorted according to {@param comparator}.
^
/home/runner/work/opensearch-sdk-py/opensearch-sdk-py/opensearch/server/src/main/java/org/opensearch/action/pagination/PaginationStrategy.java:48: error: no tag name after @
* Utility method to get list of indices filtered as per {@param filterPredicate} and the sorted according to {@param comparator}.
^
/home/runner/work/opensearch-sdk-py/opensearch-sdk-py/opensearch/server/src/main/java/org/opensearch/action/pagination/PaginationStrategy.java:60: error: no tag name after @
* Utility method to get list of indices sorted as per {@param comparator}.
^
...
FAILURE: Build completed with 2 failures.
> Task :server:compileJava FAILED
110 actionable tasks: 110 executed
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':server:compileJava'.
> Compilation failed; see the compiler error output for details.
Expected behavior
OpenSearch compiles without javadoc errors.
Additional Details
Additional context
This does not appear on OpenSearch because these javadoc errors are suppressed in gradle.properties:
Line 14 in 4456d55
| org.gradle.warning.mode=none |
However, this configuration is not used in other project GHA. It can be worked around by using --warning-mode none switch on gradle commands, but it's better to not require projects to ignore these errors to compile.
Bug introduced in #14641