< prev index next >

src/hotspot/share/oops/method.cpp

Print this page
rev 50307 : [mq]: cont

@@ -1588,11 +1588,11 @@
   }
   return false;
 }
 
 // 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());
 #else
   st->print(" %s::", method_holder()->internal_name());

@@ -1653,11 +1653,11 @@
   void print_parameters()              { _use_separator = false; iterate_parameters(); }
   void print_returntype()              { _use_separator = false; iterate_returntype(); }
 };
 
 
-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");
   if (WizardMode) {
     st->print("%s.", method_holder()->internal_name());
< prev index next >