mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8003557: NPG: Klass* const k should be const Klass* k
With NPG, const KlassOop klass which is in fact a definition converted to Klass* const, which is not the original intention. The right usage is converting them to const Klass*. Reviewed-by: coleenp, kvn
This commit is contained in:
parent
8d3d80dbc9
commit
c6aa9c656f
20 changed files with 62 additions and 64 deletions
|
@ -1710,7 +1710,7 @@ JVM_ENTRY(jobjectArray, JVM_GetMethodParameters(JNIEnv *env, jobject method))
|
|||
for (int i = 0; i < num_params; i++) {
|
||||
MethodParametersElement* params = mh->method_parameters_start();
|
||||
// For a 0 index, give a NULL symbol
|
||||
Symbol* const sym = 0 != params[i].name_cp_index ?
|
||||
Symbol* sym = 0 != params[i].name_cp_index ?
|
||||
mh->constants()->symbol_at(params[i].name_cp_index) : NULL;
|
||||
int flags = params[i].flags;
|
||||
oop param = Reflection::new_parameter(reflected_method, i, sym,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue