-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix forbiddenapis on java 11 #33116
Fix forbiddenapis on java 11 #33116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look good, I left a minor note
@@ -41,6 +43,7 @@ | |||
|
|||
public class ForbiddenApisCliTask extends DefaultTask { | |||
|
|||
private final Logger logger = Logging.getLogger(ForbiddenApisCliTask.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be static
?
private static final Logger logger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't seem to be consistent with this. I don't know if log4j has any recommendation, slf4j no longer favors this https://www.slf4j.org/faq.html#declared_static
@@ -90,7 +90,6 @@ public GetJobRequest(String... jobIds) { | |||
|
|||
/** | |||
* See {@link GetJobRequest#isAllowNoJobs()} | |||
* @param allowNoJobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need to drop the javadoc param
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do, this is not valid in java 11 without any further details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
surprise, surprise
LGTM |
We didn't used to make loggers static because we couldn't get the node name
in them. I fixed that recenlty. I prefer static but don't care enough to
block any PRs over it. And there are still some cars where it can't be
static, namely when they include the shard or index id. Long story short:
we did the old thing for a reason that is no longer true, use your best
judgement now and don't rely on past patterns.
…On Fri, Aug 24, 2018, 7:13 AM Vladimir Dolzhenko ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In
x-pack/protocol/src/main/java/org/elasticsearch/protocol/xpack/ml/GetJobRequest.java
<#33116 (comment)>
:
> @@ -90,7 +90,6 @@ public GetJobRequest(String... jobIds) {
/**
* See ***@***.*** GetJobRequest#isAllowNoJobs()}
- * @param allowNoJobs
surprise, surprise
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#33116 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANLoprFcpo7cFSP6tJApwMiMmFhgkCJks5uT9_1gaJpZM4WKxKV>
.
|
Cap forbiddenapis to java version 10
* master: Adjust BWC version on mapping version Token API supports the client_credentials grant (#33106) Build: forked compiler max memory matches jvmArgs (#33138) Introduce mapping version to index metadata (#33147) SQL: Enable aggregations to create a separate bucket for missing values (#32832) Fix grammar in contributing docs SECURITY: Fix Compile Error in ReservedRealmTests (#33166) APM server monitoring (#32515) Support only string `format` in date, root object & date range (#28117) [Rollup] Move toBuilders() methods out of rollup config objects (#32585) Fix forbiddenapis on java 11 (#33116) Apply publishing to genreate pom (#33094) Have circuit breaker succeed on unknown mem usage Do not lose default mapper on metadata updates (#33153) Fix a mappings update test (#33146) Reload Secure Settings REST specs & docs (#32990) Refactor CachingUsernamePassword realm (#32646)
* 6.x: Introduce mapping version to index metadata (#33147) Move non duplicated actions back into xpack core (#32952) HLRC: Create server agnostic request and response (#32912) Build: forked compiler max memory matches jvmArgs (#33138) * Added breaking change section for GROUP BY behavior: now it considers null or empty values as a separate group/bucket. Previously, they were ignored. * This is part of backporting of #32832 SQL: Enable aggregations to create a separate bucket for missing values (#32832) [TEST] version guard for reload rest-api-spec Fix grammar in contributing docs APM server monitoring (#32515) Support only string `format` in date, root object & date range (#28117) [Rollup] Move toBuilders() methods out of rollup config objects (#32585) Accept Gradle build scan agreement (#30645) Fix forbiddenapis on java 11 (#33116) Run forbidden api checks with runtimeJavaVersion (#32947) Apply publishing to genreate pom (#33094) Fix a mappings update test (#33146) Reload Secure Settings REST specs & docs (#32990) Refactor CachingUsernamePassword realm (#32646)
Forbidden APIs doesn't yet support Java 11, so use the signatures from 10 when running on 11.
Closes #33082.