< prev index next >
src/hotspot/share/oops/method.cpp
Print this page
rev 49011 : 8197405: Improve messages of AbstractMethodErrors and IncompatibleClassChangeErrors.
Reviewed-by: coleenp, dholmes
@@ -174,10 +174,19 @@
}
return buf;
}
+// Helper routine: get modifier list as C string. The string has a
+// trailing whitespace if not empty. The string is allocated
+// in resource area.
+char* Method::modifiers_as_C_string() const {
+ stringStream ss;
+ access_flags().print_on(&ss);
+ return ss.as_string();
+}
+
int Method::fast_exception_handler_bci_for(const methodHandle& mh, Klass* ex_klass, int throw_bci, TRAPS) {
// exception table holds quadruple entries of the form (beg_bci, end_bci, handler_bci, klass_index)
// access exception table
ExceptionTable table(mh());
int length = table.length();
< prev index next >