8182089: build error in hotspot/src/share/vm/runtime/reflection.cpp
authorhseigel
Thu, 15 Jun 2017 14:34:32 -0400
changeset 46543 a6c67129b3fd
parent 46541 d20828de9e39
child 46544 9157a537907e
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
hotspot/src/share/vm/runtime/reflection.cpp
--- 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) {