8182089: build error in hotspot/src/share/vm/runtime/reflection.cpp
Summary: Add const to argument in reflection.cpp so method signature matches the one in reflection.hpp
Reviewed-by: zgu, coleenp, rprotacio
--- a/hotspot/src/share/vm/runtime/reflection.cpp Thu Jun 15 09:52:44 2017 +0200
+++ b/hotspot/src/share/vm/runtime/reflection.cpp Thu Jun 15 14:34:32 2017 -0400
@@ -567,7 +567,7 @@
// This function must be called from within a block containing a ResourceMark.
char* Reflection::verify_class_access_msg(const Klass* current_class,
const InstanceKlass* new_class,
- VerifyClassAccessResults result) {
+ const VerifyClassAccessResults result) {
assert(result != ACCESS_OK, "must be failure result");
char * msg = NULL;
if (result != OTHER_PROBLEM && new_class != NULL && current_class != NULL) {