The primary reason to drop that compatibility is because Bazel is adding unconditionally -parameters option that is not compatible with JDK 7. This pollutes the build log with annoying warnings: warning: -parameters is not supported for target value 1.7. \ Use 1.8 or later. Second reason is that nobody in the wild relies on JDK 7 any more because it was discontinued years ago. Also remove JDK9 config_setting rule that is not used any more. Test Plan: Build :protobuf_java and confirm, that there are no warnings any more and that major byte version 52 is produced, that corresponds to Java 8: $ bazel build protobuf_java $ javap -v -cp bazel-bin/java/core/libcore.jar com.google.protobuf.Any | grep major major version: 52pull/7485/head
parent
fa9ebaf807
commit
6bbd56dfd9
3 changed files with 0 additions and 20 deletions
@ -1,9 +0,0 @@ |
||||
config_setting( |
||||
name = "jdk9", |
||||
values = { |
||||
"java_toolchain": "@bazel_tools//tools/jdk:toolchain_jdk9", |
||||
}, |
||||
visibility = [ |
||||
"//java:__subpackages__", |
||||
], |
||||
) |
Loading…
Reference in new issue