From 65307c065f4233fbaf94ad5ddd13323519af08f4 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 27 Feb 2013 16:55:56 -0800 Subject: [PATCH] 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 --- core/tasks/cts.mk | 1 + 1 file changed, 1 insertion(+) 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