-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add required --add-opens
server JVM args also with non-embedded JDK
#16706
Conversation
@cushon Could you take a look? This seems too simple of a fix, so I may be missing something. |
Makes sense to me: I think this was a workaround for not having a better way to tell if the server javabase was JDK > 8, and now that we don't need JDK 8 passing the flags unconditionally SGTM. |
Since the Bazel server requires JDK 11 or higher to run, the `--add-opens` server JVM arg for `java.lang` can now be added unconditionally, which ensures support with JDK 17+. Also removes the additional opens for `java.nio`, which was only needed to silence a protobuf warning that has since been fixed upstream.
bec40e7
to
8817436
Compare
@bazel-io flag |
@cushon Friendly ping, is this in the process of being merged? |
Since the Bazel server requires JDK 11 or higher to run, the `--add-opens` server JVM arg for `java.lang` can now be added unconditionally, which ensures support with JDK 17+. Also removes the additional opens for `java.nio`, which was only needed to silence a protobuf warning that has since been fixed upstream. Fixes bazelbuild#16705 Fixes bazelbuild#15831 Closes bazelbuild#16706. PiperOrigin-RevId: 489372772 Change-Id: I880e2689f59b2d4420b1e2e0517697d7fb03abbc
…#16787) Since the Bazel server requires JDK 11 or higher to run, the `--add-opens` server JVM arg for `java.lang` can now be added unconditionally, which ensures support with JDK 17+. Also removes the additional opens for `java.nio`, which was only needed to silence a protobuf warning that has since been fixed upstream. Fixes #16705 Fixes #15831 Closes #16706. PiperOrigin-RevId: 489372772 Change-Id: I880e2689f59b2d4420b1e2e0517697d7fb03abbc
Since the Bazel server requires JDK 11 or higher to run, the
--add-opens
server JVM arg forjava.lang
can now be added unconditionally, which ensures support with JDK 17+.Also removes the additional opens for
java.nio
, which was only needed to silence a protobuf warning that has since been fixed upstream.Fixes #16705
Fixes #15831