Remove static GcRoot<>s from Field, Method, Constructor.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 31113334
Change-Id: I648b88339995761fb81180286ef48a42bbd2f83d
diff --git a/runtime/proxy_test.h b/runtime/proxy_test.h
index 9836264..fa5a449 100644
--- a/runtime/proxy_test.h
+++ b/runtime/proxy_test.h
@@ -22,6 +22,7 @@
 
 #include "art_method-inl.h"
 #include "class_linker-inl.h"
+#include "class_root.h"
 #include "mirror/class-inl.h"
 #include "mirror/method.h"
 
@@ -59,7 +60,7 @@
     methods_count += interface->NumVirtualMethods();
   }
   jobjectArray proxyClassMethods = soa.Env()->NewObjectArray(
-      methods_count, soa.AddLocalReference<jclass>(mirror::Method::StaticClass()), nullptr);
+      methods_count, soa.AddLocalReference<jclass>(GetClassRoot<mirror::Method>()), nullptr);
   soa.Self()->AssertNoPendingException();
 
   jsize array_index = 0;