Clinits may not have the kAccConstructor flag.
Bug: 11157540
Set the clinit access flag when we load the method and warn about badly
formed access flags.
Change-Id: I515c692095051f84f98510722ab764591185918e
diff --git a/runtime/mirror/class.cc b/runtime/mirror/class.cc
index b16c2f7..2b0b1e1 100644
--- a/runtime/mirror/class.cc
+++ b/runtime/mirror/class.cc
@@ -500,6 +500,7 @@
if (method->IsConstructor() && method->IsStatic()) {
if (kIsDebugBuild) {
MethodHelper mh(method);
+ CHECK(mh.IsClassInitializer());
CHECK_STREQ(mh.GetName(), "<clinit>");
CHECK_STREQ(mh.GetSignature().ToString().c_str(), "()V");
}