Remove java.lang (re)definition tests from class_linker_test
There is a dx issue when processing extensions of java.lang package.
"
...
trouble processing "java/lang/JavaLangFromD.class".
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
...
"
Remove the checks until we figure out how to verify this behavior on all
our configurations.
This is a partial revert of commit
cdd4912eef02cce1ae4ec95e025794dced089466.
Test: ANDROID_COMPILE_WITH_JACK=false cmma
test-art-host-gtest-class_linker_test
Bug: 38138251
Change-Id: Ib05253eaebab1299dfb36b54a7c99d3362a7ed72
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc
index a156229..03cc6c5 100644
--- a/runtime/class_linker_test.cc
+++ b/runtime/class_linker_test.cc
@@ -1603,7 +1603,7 @@
// ClassLoaderC (PathClassLoader, defines: C, AC, BC, CD)
// ^
// |
- // ClassLoaderD (DelegateLastClassLoader, defines: D, AD, BD, CD, Ljava/lang/String;)
+ // ClassLoaderD (DelegateLastClassLoader, defines: D, AD, BD, CD)
jobject class_loader_a = LoadDexInPathClassLoader("ForClassLoaderA", nullptr);
jobject class_loader_b = LoadDexInDelegateLastClassLoader("ForClassLoaderB", class_loader_a);
@@ -1635,11 +1635,6 @@
// in the top parent.
VerifyClassResolution("LDefinedInAC;", class_loader_d, class_loader_a);
- // Boot classes should be found in the boot class loader even if they are redefined locally.
- VerifyClassResolution("Ljava/lang/String;", class_loader_d, nullptr);
- // Sanity check that what seems like a boot class is actually loaded from D.
- VerifyClassResolution("Ljava/lang/JavaLangFromD;", class_loader_d, class_loader_d);
-
// Sanity check that we don't find an undefined class.
VerifyClassResolution("LNotDefined;", class_loader_d, nullptr, /*should_find*/ false);
}