You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
< WARNING: An illegal reflective access operation has occurred
< WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ab11d4d7718c577e34d29e80c1ea7a24/sandbox/4792110657591662707/execroot/io_bazel/_tmp/bf89598a54a896b6604732eca0b954fe/root/install/e2abbe56c2f5d3ad340474a4994591d4/_embedded_binaries/A-server.jar) to field java.nio.Buffer.address
< WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
< WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
< WARNING: All illegal access operations will be denied in a future release
I assume we can resolve this by updating protobuf to the latest version, which should support JDK9. Maybe @cushon knows?
Passing --add-opens=java.base/java.nio=ALL-UNNAMED suppresses the warning. That flag isn't backwards-compatible with JDK 8. The other option is to ignore the warning in the test :/
@buchgr the fix I suggested regresses //src/test/shell/bazel:bazel_bootstrap_distfile_test. The bootstrap bazel doesn't use the embedded JDK so it defaults to using the local JDK 8, and --add-opens isn't compatible with JDK 8.
One option is to make the bootstrap build use JDK 9 as the --host_javabase, either by making the bootstrap build embedded a JDK, or separately installing a JDK 9 and setting --host_javabase in the bootstrap script. Is that something you could help with?
Another option is to just ignore the warnings during the test, but users running bazel info will see the same warning spam, which we should avoid. And ultimately we don't intend to support JDK 8 as a --host_javabase for much longer, so we'll need to deal with bootstrapping either way.
Activity
cushon commentedon Jun 1, 2018
This is protocolbuffers/protobuf#3781.
Passing
--add-opens=java.base/java.nio=ALL-UNNAMEDsuppresses the warning. That flag isn't backwards-compatible with JDK 8. The other option is to ignore the warning in the test :/cushon commentedon Jun 1, 2018
Here's a fix:
(That will need to happen in the same change as #5312, since the JVM flag isn't backwards compatible with JDK 8.)
buchgr commentedon Jun 2, 2018
@cushon awesome! I have updated #5312
cushon commentedon Jun 6, 2018
@buchgr the fix I suggested regresses
//src/test/shell/bazel:bazel_bootstrap_distfile_test. The bootstrap bazel doesn't use the embedded JDK so it defaults to using the local JDK 8, and--add-opensisn't compatible with JDK 8.e.g. https://buildkite.com/bazel/bazel-bazel/builds/2579#2dfdde87-9ec0-4218-be2d-8b664d633708
One option is to make the bootstrap build use JDK 9 as the
--host_javabase, either by making the bootstrap build embedded a JDK, or separately installing a JDK 9 and setting--host_javabasein the bootstrap script. Is that something you could help with?Another option is to just ignore the warnings during the test, but users running
bazel infowill see the same warning spam, which we should avoid. And ultimately we don't intend to support JDK 8 as a--host_javabasefor much longer, so we'll need to deal with bootstrapping either way.update bazel's embedded jdk to jdk9
update bazel's embedded jdk to jdk9
buchgr commentedon Aug 6, 2018
this has been fixed
update bazel's embedded jdk to jdk9