comparison src/share/vm/prims/jvm.cpp @ 10265:92ef81e2f571

8003557: NPG: Klass* const k should be const Klass* k. Summary: 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 Contributed-by: yumin.qi@oracle.com
author minqi
date Fri, 10 May 2013 08:27:30 -0700
parents cd9ad42dfde0
children 6bd680e9ea35 ce9ecec70f99
comparison
equal deleted inserted replaced
10262:c272092594bd 10265:92ef81e2f571
1708 objArrayHandle result (THREAD, result_oop); 1708 objArrayHandle result (THREAD, result_oop);
1709 1709
1710 for (int i = 0; i < num_params; i++) { 1710 for (int i = 0; i < num_params; i++) {
1711 MethodParametersElement* params = mh->method_parameters_start(); 1711 MethodParametersElement* params = mh->method_parameters_start();
1712 // For a 0 index, give a NULL symbol 1712 // For a 0 index, give a NULL symbol
1713 Symbol* const sym = 0 != params[i].name_cp_index ? 1713 Symbol* sym = 0 != params[i].name_cp_index ?
1714 mh->constants()->symbol_at(params[i].name_cp_index) : NULL; 1714 mh->constants()->symbol_at(params[i].name_cp_index) : NULL;
1715 int flags = params[i].flags; 1715 int flags = params[i].flags;
1716 oop param = Reflection::new_parameter(reflected_method, i, sym, 1716 oop param = Reflection::new_parameter(reflected_method, i, sym,
1717 flags, CHECK_NULL); 1717 flags, CHECK_NULL);
1718 result->obj_at_put(i, param); 1718 result->obj_at_put(i, param);