Index: runtime/vm/class_finalizer.cc |
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc |
index 1a256cd8da20a8af2a8b55b80ca91ba520bc9f94..24a2cf0a2de54548957dd30b6e67189f3bac4e42 100644 |
--- a/runtime/vm/class_finalizer.cc |
+++ b/runtime/vm/class_finalizer.cc |
@@ -2427,7 +2427,11 @@ void ClassFinalizer::FinalizeTypesInClass(const Class& cls) { |
// fields because type parameters are parsed before the class body. Since |
// 'ResolveAndFinalizeMemberTypes(cls)' has not been called yet, unfinalized |
// member types could choke the snapshotter. |
- ASSERT(Array::Handle(cls.functions()).Length() == 0); |
+ // or if the class is being refinalized because a patch is being applied |
regis
2016/03/31 18:16:49
or -> Or
siva
2016/03/31 23:48:08
Done.
|
+ // after the class has been finalized then it is ok for the class to have |
+ // functions. |
+ ASSERT((Array::Handle(cls.functions()).Length() == 0) || |
+ cls.is_refinalize()); |
} |
} |