From 78d2983566f1f4ca23cf15c6694cac25a509a5b7 Mon Sep 17 00:00:00 2001 From: Tobias Thierer Date: Tue, 18 Jul 2017 16:17:15 +0100 Subject: [PATCH] Drop obsolete javac -extdirs commandline arg. The extension directory defaults to lib/ext and does not exist by default. Setting it to the empty string de facto disables this obsolete feature. AOSP is moving to a hermetic toolchain so this argument will stop working soon. Further, OpenJDK 9 javac no longer supports this command line argument when compiling for -source 1.9 -target 1.9. This command line argument has been around since the earliest versions of Android, but is now obsolete. This CL drops it. Bug: 63746471 Test: Treehugger Change-Id: Ia0214c1b192e3ffda10772d777557a81ce346c03 --- core/definitions.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/definitions.mk b/core/definitions.mk index 6199837ad1..d436820017 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2219,7 +2219,7 @@ $(hide) if [ -s $(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq ] ; the $(addprefix -classpath ,$(strip \ $(call normalize-path-list,$(PRIVATE_ALL_JAVA_LIBRARIES)))) \ $(if $(findstring true,$(PRIVATE_WARNINGS_ENABLE)),$(xlint_unchecked),) \ - -extdirs "" -d $(PRIVATE_CLASS_INTERMEDIATES_DIR) -s $(PRIVATE_ANNO_INTERMEDIATES_DIR) \ + -d $(PRIVATE_CLASS_INTERMEDIATES_DIR) -s $(PRIVATE_ANNO_INTERMEDIATES_DIR) \ $(PRIVATE_JAVACFLAGS) \ \@$(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq \ || ( rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR) ; exit 41 ) \