summaryrefslogtreecommitdiffstats
path: root/core/tasks
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-02-27 16:55:56 -0800
committerKenny Root <kroot@google.com>2013-02-27 16:56:04 -0800
commit65307c065f4233fbaf94ad5ddd13323519af08f4 (patch)
tree6248df4d55abe9858fd74e8eb687dc4c2f33a891 /core/tasks
parent93cdbd0b81e96649ebb789710429388c054bc377 (diff)
downloadbuild-65307c065f4233fbaf94ad5ddd13323519af08f4.tar.gz
build-65307c065f4233fbaf94ad5ddd13323519af08f4.tar.bz2
build-65307c065f4233fbaf94ad5ddd13323519af08f4.zip
CTS: work around ClassLoader limitation
Trying to use reflection on classes loaded from a different ClassLoader than the system one caused SecurityException since you can't load certain packages. Adding them to the boot classpath forces them to be in the same ClassLoader. Change-Id: Id518ab0a99da6defac525c0ad430a63f600ce85f
Diffstat (limited to 'core/tasks')
-rw-r--r--core/tasks/cts.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/tasks/cts.mk b/core/tasks/cts.mk
index 108e30ba1..5b041d60f 100644
--- a/core/tasks/cts.mk
+++ b/core/tasks/cts.mk
@@ -75,6 +75,7 @@ $(cts_dir)/all_cts_files_stamp: $(CTS_CORE_CASES) $(CTS_TEST_CASES) $(CTS_TEST_C
define generate-core-test-description
@echo "Generate core-test description ("$(notdir $(1))")"
$(hide) java -Xmx256M \
+ -Xbootclasspath/a:$(PRIVATE_CLASSPATH) \
-classpath $(PRIVATE_CLASSPATH):$(HOST_OUT_JAVA_LIBRARIES)/descGen.jar:$(HOST_JDK_TOOLS_JAR) \
$(PRIVATE_PARAMS) CollectAllTests $(1) $(2) $(3) "$(4)" $(5) $(6)
endef