-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Labels
Comments
You can specify |
Agreed, Thanks for sharing the workaround and marking it to Java team. |
Closing as duplicate of #14502 |
lsf37
added a commit
to jflex-de/jflex
that referenced
this issue
Dec 30, 2022
lsf37
added a commit
to jflex-de/jflex
that referenced
this issue
Dec 30, 2022
@fmeum This is a great way to fix Security Manager is deprecated on JDK 18 |
cpovirk
added a commit
to google/allocation-instrumenter
that referenced
this issue
Dec 14, 2023
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)
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Feb 26, 2024
It looks like there is no intention to fix this issue. Details: bazelbuild/bazel#16421 PiperOrigin-RevId: 610239131
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Feb 26, 2024
It looks like there is no intention to fix this issue. Details: bazelbuild/bazel#16421 PiperOrigin-RevId: 610239131
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Feb 26, 2024
It looks like there is no intention to fix this issue. Details: bazelbuild/bazel#16421 PiperOrigin-RevId: 610239131
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Feb 26, 2024
It looks like there is no intention to fix this issue. Details: bazelbuild/bazel#16421 PiperOrigin-RevId: 610239131
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Feb 28, 2024
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
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Feb 28, 2024
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
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Feb 28, 2024
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
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Mar 1, 2024
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
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Mar 1, 2024
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
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Mar 4, 2024
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
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Mar 5, 2024
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
copybara-service bot
pushed a commit
to google/jni-bind
that referenced
this issue
Mar 5, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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: