--- old/src/hotspot/share/oops/method.cpp 2018-04-20 00:47:02.000000000 +0100 +++ new/src/hotspot/share/oops/method.cpp 2018-04-20 00:47:02.000000000 +0100 @@ -1591,7 +1591,7 @@ } // Exposed so field engineers can debug VM -void Method::print_short_name(outputStream* st) { +void Method::print_short_name(outputStream* st) const { ResourceMark rm; #ifdef PRODUCT st->print(" %s::", method_holder()->external_name()); @@ -1656,7 +1656,7 @@ }; -void Method::print_name(outputStream* st) { +void Method::print_name(outputStream* st) const { Thread *thread = Thread::current(); ResourceMark rm(thread); st->print("%s ", is_static() ? "static" : "virtual");