Index: runtime/lib/mirrors.cc |
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc |
index 1478f0467c0db0298d217ff95b3024cbfd76619d..611c3d39260b1f7b68aff32218c461a0a39c6a6d 100644 |
--- a/runtime/lib/mirrors.cc |
+++ b/runtime/lib/mirrors.cc |
@@ -1607,10 +1607,14 @@ DEFINE_NATIVE_ENTRY(ClassMirror_invokeSetter, 4) { |
} |
if (field.is_final() || !field.is_reflectable()) { |
+ const int kNumArgs = 1; |
+ const Array& args = Array::Handle(Array::New(kNumArgs)); |
+ args.SetAt(0, value); |
+ |
ThrowNoSuchMethod(AbstractType::Handle(klass.RareType()), |
internal_setter_name, |
setter, |
- Object::null_array(), |
+ args, |
Object::null_array(), |
InvocationMirror::kStatic, |
InvocationMirror::kSetter); |
@@ -1908,10 +1912,14 @@ DEFINE_NATIVE_ENTRY(LibraryMirror_invokeSetter, 4) { |
} |
if (field.is_final() || !field.is_reflectable()) { |
+ const int kNumArgs = 1; |
+ const Array& args = Array::Handle(Array::New(kNumArgs)); |
+ args.SetAt(0, value); |
+ |
ThrowNoSuchMethod(Instance::null_instance(), |
internal_setter_name, |
setter, |
- Object::null_array(), |
+ args, |
Object::null_array(), |
InvocationMirror::kTopLevel, |
InvocationMirror::kSetter); |