Skip to content

Commit

Permalink
Java_toolchain: Remove Java 7 compatibility mode
Browse files Browse the repository at this point in the history
Closes bazelbuild#8772.

Change-Id: Ia3467b2a33ee4bfbd10cfe3f1027e292d3a967b7
  • Loading branch information
davido committed Sep 29, 2019
1 parent 1664d54 commit ffb0c73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
27 changes: 0 additions & 27 deletions tools/jdk/BUILD.java_tools
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ SUPRESSED_WARNINGS = select({
java_toolchain(
name = "toolchain",
bootclasspath = ["@bazel_tools//tools/jdk:platformclasspath"],
compatible_javacopts = {
# Restrict protos to Java 7 so that they are compatible with Android.
"proto": [
"-source",
"7",
"-target",
"7",
],
},
forcibly_disable_header_compilation = 0,
genclass = [":GenClass"],
header_compiler = [":Turbine"],
Expand Down Expand Up @@ -74,15 +65,6 @@ java_toolchain(
java_toolchain(
name = "toolchain_jdk_JAVA_LANGUAGE_LEVEL",
bootclasspath = ["@bazel_tools//tools/jdk:platformclasspath"],
compatible_javacopts = {
# Restrict protos to Java 7 so that they are compatible with Android.
"proto": [
"-source",
"7",
"-target",
"7",
],
},
forcibly_disable_header_compilation = 0,
genclass = [":GenClass"],
header_compiler = [":Turbine"],
Expand Down Expand Up @@ -135,15 +117,6 @@ java_toolchain(
java_toolchain(
name = "prebuilt_toolchain",
bootclasspath = ["@bazel_tools//tools/jdk:platformclasspath"],
compatible_javacopts = {
# Restrict protos to Java 7 so that they are compatible with Android.
"proto": [
"-source",
"7",
"-target",
"7",
],
},
forcibly_disable_header_compilation = 0,
genclass = [":GenClass"],
header_compiler = [":Turbine"],
Expand Down
12 changes: 0 additions & 12 deletions tools/jdk/default_java_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,6 @@ DEFAULT_JAVACOPTS = [
"-parameters",
]

PROTO_JAVACOPTS = [
# Restrict protos to Java 7 so that they are compatible with Android.
"-source",
"7",
"-target",
"7",
]

COMPATIBLE_JAVACOPTS = {
"proto": PROTO_JAVACOPTS,
}
DEFAULT_TOOLCHAIN_CONFIGURATION = {
"forcibly_disable_header_compilation": 0,
"genclass": ["@bazel_tools//tools/jdk:genclass"],
Expand All @@ -74,7 +63,6 @@ DEFAULT_TOOLCHAIN_CONFIGURATION = {
"javac_supports_workers": 1,
"jvm_opts": JDK9_JVM_OPTS,
"misc": DEFAULT_JAVACOPTS,
"compatible_javacopts": COMPATIBLE_JAVACOPTS,
"singlejar": ["@bazel_tools//tools/jdk:singlejar"],
"bootclasspath": ["@bazel_tools//tools/jdk:platformclasspath"],
"source_version": "8",
Expand Down

0 comments on commit ffb0c73

Please sign in to comment.