--- a/hotspot/src/share/vm/runtime/reflection.cpp Mon Jun 29 13:48:55 2015 -0700
+++ b/hotspot/src/share/vm/runtime/reflection.cpp Mon Jun 29 10:16:48 2015 +0200
@@ -1002,8 +1002,9 @@
vmSymbols::throwable_void_signature(),
&args);
} else {
- if (rtype == T_BOOLEAN || rtype == T_BYTE || rtype == T_CHAR || rtype == T_SHORT)
+ if (rtype == T_BOOLEAN || rtype == T_BYTE || rtype == T_CHAR || rtype == T_SHORT) {
narrow((jvalue*) result.get_value_addr(), rtype, CHECK_NULL);
+ }
return box((jvalue*) result.get_value_addr(), rtype, THREAD);
}
}