Add a default constructor to JValue.
Change-Id: I7abe801b26f5003c480215c1f1ca64dfc07667ed
diff --git a/src/reflection.cc b/src/reflection.cc
index f7c275c..aba930c 100644
--- a/src/reflection.cc
+++ b/src/reflection.cc
@@ -101,7 +101,7 @@
}
// Invoke the method.
- JValue value = InvokeWithJValues(env, javaReceiver, mid, args.get());
+ JValue value(InvokeWithJValues(env, javaReceiver, mid, args.get()));
// Wrap any exception with "Ljava/lang/reflect/InvocationTargetException;" and return early.
if (self->IsExceptionPending()) {
@@ -301,7 +301,7 @@
return false;
}
- JValue boxed_value = { 0 };
+ JValue boxed_value;
std::string src_descriptor(ClassHelper(o->GetClass()).GetDescriptor());
Class* src_class = NULL;
ClassLinker* class_linker = Runtime::Current()->GetClassLinker();