mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8130036: Fix problems with imprecise C++ coding
Reviewed-by: dholmes, kbarrett
This commit is contained in:
parent
037958ba9a
commit
bd938df14f
3 changed files with 9 additions and 9 deletions
|
@ -1002,8 +1002,9 @@ oop Reflection::invoke(instanceKlassHandle klass, methodHandle reflected_method,
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue