-
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
junit_test is incompatible with JDK 18+ - "java.lang.UnsupportedOperationException: The Security Manager is deprecated" #16421
Comments
You can specify |
Agreed, Thanks for sharing the workaround and marking it to Java team. |
Closing as duplicate of #14502 |
@fmeum This is a great way to fix Security Manager is deprecated on JDK 18 |
Fixes #55 (tested with `JAVA_HOME=$HOME/jdk-22-ea+19 bazel test //... --jvmopt=-Djava.security.manager=allow`, following [these Bazel docs](https://bazel.build/docs/bazel-and-java#config-jvm) and [this Bazel-provided workaround](bazelbuild/bazel#16421)) (piper cl/589180562)
It looks like there is no intention to fix this issue. Details: bazelbuild/bazel#16421 PiperOrigin-RevId: 610239131
It looks like there is no intention to fix this issue. Details: bazelbuild/bazel#16421 PiperOrigin-RevId: 610239131
It looks like there is no intention to fix this issue. Details: bazelbuild/bazel#16421 PiperOrigin-RevId: 610239131
It looks like there is no intention to fix this issue. Details: bazelbuild/bazel#16421 PiperOrigin-RevId: 610239131
Due to a bug in Junit this needs to be disabled. Linux will warn on this error but not crash, however, Darwin will crash. See bazelbuild/bazel#16421. PiperOrigin-RevId: 611117548
Due to a bug in Junit this needs to be disabled. Linux will warn on this error but not crash, however, Darwin will crash. See bazelbuild/bazel#16421. PiperOrigin-RevId: 611117548
Due to a bug in Junit this needs to be disabled. Linux will warn on this error but not crash, however, Darwin will crash. See bazelbuild/bazel#16421. PiperOrigin-RevId: 611117548
Due to a bug in Junit this needs to be disabled. Linux will warn on this error but not crash, however, Darwin will crash. See bazelbuild/bazel#16421. PiperOrigin-RevId: 611117548
Due to a bug in Junit this needs to be disabled. Linux will warn on this error but not crash, however, Darwin will crash. See bazelbuild/bazel#16421. PiperOrigin-RevId: 611117548
Due to a bug in Junit this needs to be disabled. Linux will warn on this error but not crash, however, Darwin will crash. See bazelbuild/bazel#16421. PiperOrigin-RevId: 611117548
Due to a bug in Junit this needs to be disabled. Linux will warn on this error but not crash, however, Darwin will crash. See bazelbuild/bazel#16421. PiperOrigin-RevId: 611117548
Due to a bug in Junit this needs to be disabled. Linux will warn on this error but not crash, however, Darwin will crash. See bazelbuild/bazel#16421. PiperOrigin-RevId: 611117548
I note that this issue is closed, but with Bazel 7.3.1, and jdk 17, and
|
Description of the bug:
Running a trivial
java_test
with JDK 18+ yields the following (with the test failing):Having JDK 17 (or older) on the PATH fixes the issue above.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Sources
WORKSPACE.bazel
:java/example/BUILD.bazel
:java/example/ExampleTest.java
:Repro command
Which operating system are you running Bazel on?=
Macos 12.6
What is the output of
bazel info release
?release 5.1.1
The text was updated successfully, but these errors were encountered: