src/hotspot/share/oops/klass.cpp
changeset 49368 2ed1c37df3a5
parent 49329 04ed29f9ef33
child 49393 93fe2fc5c093
--- a/src/hotspot/share/oops/klass.cpp	Fri Mar 09 12:03:20 2018 -0500
+++ b/src/hotspot/share/oops/klass.cpp	Thu Feb 08 09:23:49 2018 +0100
@@ -636,12 +636,17 @@
   return name()->as_klass_external_name();
 }
 
-
 const char* Klass::signature_name() const {
   if (name() == NULL)  return "<unknown>";
   return name()->as_C_string();
 }
 
+const char* Klass::external_kind() const {
+  if (is_interface()) return "interface";
+  if (is_abstract()) return "abstract class";
+  return "class";
+}
+
 // Unless overridden, modifier_flags is 0.
 jint Klass::compute_modifier_flags(TRAPS) const {
   return 0;