aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Liam Miller-Cushon <cushon@google.com>2018-01-04 09:42:50 -0800
committerGravatar Irina Iancu <elenairina@google.com>2018-01-18 10:12:11 +0100
commit6e945ced1f3d61d2497626db9138127bcb302c77 (patch)
tree2ecd4fb1240700364cf284141c1e1ee3d8ddf34d
parent6f502ac12180973f4646c95d95e1516082b3c71c (diff)
Update javac version to 9+181-r4173-1
Change-Id: I05fa85967317c4581081adfc620e24a7c6322669
-rwxr-xr-xscripts/bootstrap/compile.sh2
-rw-r--r--src/create_embedded_tools.py4
-rwxr-xr-xsrc/test/shell/testenv.sh4
-rw-r--r--third_party/java/jdk/README.md13
-rw-r--r--third_party/java/jdk/langtools/BUILD8
-rw-r--r--third_party/java/jdk/langtools/javac-9+181-r4173-1.jar (renamed from third_party/java/jdk/langtools/javac-9-dev-r4023-3.jar)bin6848376 -> 6885456 bytes
-rw-r--r--third_party/java/jdk/langtools/javac-9+181-r4173-1.srcjar (renamed from third_party/java/jdk/langtools/javac-9-dev-r4023-3.srcjar)bin4341922 -> 4394459 bytes
-rw-r--r--third_party/java/jdk/langtools/javac.jarbin2912761 -> 0 bytes
-rw-r--r--third_party/java/jdk/langtools/javac.srcjarbin9223603 -> 0 bytes
9 files changed, 9 insertions, 22 deletions
diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh
index c7b26ccc72..3fbd6333a8 100755
--- a/scripts/bootstrap/compile.sh
+++ b/scripts/bootstrap/compile.sh
@@ -17,7 +17,7 @@
# Script for building bazel from scratch without bazel
PROTO_FILES=$(ls src/main/protobuf/*.proto src/main/java/com/google/devtools/build/lib/buildeventstream/proto/*.proto)
-LIBRARY_JARS=$(find third_party -name '*.jar' | grep -Fv /javac-9-dev-r3297-4.jar | grep -Fv /javac-9-dev-4023-3.jar | grep -Fv /javac7.jar | grep -Fv JavaBuilder | grep -Fv third_party/guava | grep -Fv third_party/guava | grep -ve 'third_party/grpc/grpc.*jar' | tr "\n" " ")
+LIBRARY_JARS=$(find third_party -name '*.jar' | grep -Fv JavaBuilder | grep -Fv third_party/guava | grep -Fv third_party/guava | grep -ve 'third_party/grpc/grpc.*jar' | tr "\n" " ")
GRPC_JAVA_VERSION=1.7.0
GRPC_LIBRARY_JARS=$(find third_party/grpc -name '*.jar' | grep -e ".*${GRPC_JAVA_VERSION}.*jar" | tr "\n" " ")
GUAVA_VERSION=23.1
diff --git a/src/create_embedded_tools.py b/src/create_embedded_tools.py
index 17d747fafc..352069c411 100644
--- a/src/create_embedded_tools.py
+++ b/src/create_embedded_tools.py
@@ -35,8 +35,8 @@ output_paths = [
('*JacocoCoverage*_deploy.jar',
lambda x: 'tools/jdk/JacocoCoverage_deploy.jar'),
('*turbine_deploy.jar', lambda x: 'tools/jdk/turbine_deploy.jar'),
- ('*javac-9-dev-r4023-3.jar',
- lambda x: 'third_party/java/jdk/langtools/javac-9-dev-r4023-3.jar'),
+ ('*javac-9+181-r4173-1.jar',
+ lambda x: 'third_party/java/jdk/langtools/javac-9+181-r4173-1.jar'),
('*SingleJar_deploy.jar',
lambda x: 'tools/jdk/singlejar/SingleJar_deploy.jar'),
('*GenClass_deploy.jar', lambda x: 'tools/jdk/GenClass_deploy.jar'),
diff --git a/src/test/shell/testenv.sh b/src/test/shell/testenv.sh
index b8bc2e02b7..e0bca651c3 100755
--- a/src/test/shell/testenv.sh
+++ b/src/test/shell/testenv.sh
@@ -413,8 +413,8 @@ function create_new_workspace() {
copy_tools_directory
- [ -e third_party/java/jdk/langtools/javac-9-dev-r4023-3.jar ] \
- || ln -s "${langtools_path}" third_party/java/jdk/langtools/javac-9-dev-r4023-3.jar
+ [ -e third_party/java/jdk/langtools/javac-9+181-r4173-1.jar ] \
+ || ln -s "${langtools_path}" third_party/java/jdk/langtools/javac-9+181-r4173-1.jar
touch WORKSPACE
}
diff --git a/third_party/java/jdk/README.md b/third_party/java/jdk/README.md
index f158d77ee6..cfed43fd75 100644
--- a/third_party/java/jdk/README.md
+++ b/third_party/java/jdk/README.md
@@ -8,16 +8,3 @@ of the Java compiler code. This is the raw version of the Java compiler
from [OpenJDK](https://openjdk.java.net) but compiled for a lower
version of the JRE. Those builds are vendored in
//third_party/java/jdk/langtools.
-
-Currently Bazel supports running on a JRE 8 only because the default Java
-compiler used (//third_party/java/jdk/langtools/javac-9-dev-r4023-3.jar) is the
-Java compiler of OpenJDK 9 compiled to run on a JRE 8. This cannot
-be built to run on a JRE 7 because of code incompatibility. Bazel's
-JavaBuilder at HEAD cannot be linked with earlier version of the
-Java compiler (it depends on some internals of the Java compiler).
-
-To build a version of Bazel that can run on a JRE 7, we need to rely
-on the version of JavaBuilder provided with Bazel 0.1.0
-(//third_party/java/jdk/javabuilder/JavaBuilder_0.1.0_deploy.jar) which works
-with a Java compiler of OpenJDK 8 compiled to run on a JRE 7
-(//third_party/java/jdk/langtools/javac7.jar).
diff --git a/third_party/java/jdk/langtools/BUILD b/third_party/java/jdk/langtools/BUILD
index 2e8422c192..cb1b4311db 100644
--- a/third_party/java/jdk/langtools/BUILD
+++ b/third_party/java/jdk/langtools/BUILD
@@ -12,17 +12,17 @@ filegroup(
srcs = [
"BUILD",
"LICENSE",
- "javac-9-dev-r4023-3.jar",
- "javac-9-dev-r4023-3.srcjar",
+ "javac-9+181-r4173-1.jar",
+ "javac-9+181-r4173-1.srcjar",
],
)
java_import(
name = "javac",
- jars = ["javac-9-dev-r4023-3.jar"],
+ jars = ["javac-9+181-r4173-1.jar"],
)
filegroup(
name = "javac_jar",
- srcs = ["javac-9-dev-r4023-3.jar"],
+ srcs = ["javac-9+181-r4173-1.jar"],
)
diff --git a/third_party/java/jdk/langtools/javac-9-dev-r4023-3.jar b/third_party/java/jdk/langtools/javac-9+181-r4173-1.jar
index 362885da49..168633db13 100644
--- a/third_party/java/jdk/langtools/javac-9-dev-r4023-3.jar
+++ b/third_party/java/jdk/langtools/javac-9+181-r4173-1.jar
Binary files differ
diff --git a/third_party/java/jdk/langtools/javac-9-dev-r4023-3.srcjar b/third_party/java/jdk/langtools/javac-9+181-r4173-1.srcjar
index 6a9e39d52b..8a1f20f606 100644
--- a/third_party/java/jdk/langtools/javac-9-dev-r4023-3.srcjar
+++ b/third_party/java/jdk/langtools/javac-9+181-r4173-1.srcjar
Binary files differ
diff --git a/third_party/java/jdk/langtools/javac.jar b/third_party/java/jdk/langtools/javac.jar
deleted file mode 100644
index cdb1db2ecd..0000000000
--- a/third_party/java/jdk/langtools/javac.jar
+++ /dev/null
Binary files differ
diff --git a/third_party/java/jdk/langtools/javac.srcjar b/third_party/java/jdk/langtools/javac.srcjar
deleted file mode 100644
index cab9de7905..0000000000
--- a/third_party/java/jdk/langtools/javac.srcjar
+++ /dev/null
Binary files differ