--- a/src/hotspot/share/prims/methodHandles.cpp Fri Jun 22 17:49:21 2018 -0700
+++ b/src/hotspot/share/prims/methodHandles.cpp Sat Jun 23 01:32:41 2018 -0400
@@ -238,7 +238,12 @@
vmindex);
m->access_flags().print_on(tty);
if (!m->is_abstract()) {
- tty->print("default");
+ if (!m->is_private()) {
+ tty->print("default");
+ }
+ else {
+ tty->print("private-intf");
+ }
}
tty->cr();
}
@@ -292,6 +297,9 @@
} else if (m->is_initializer()) {
flags |= IS_CONSTRUCTOR | (JVM_REF_invokeSpecial << REFERENCE_KIND_SHIFT);
} else {
+ // "special" reflects that this is a direct call, not that it
+ // necessarily originates from an invokespecial. We can also do
+ // direct calls for private and/or final non-static methods.
flags |= IS_METHOD | (JVM_REF_invokeSpecial << REFERENCE_KIND_SHIFT);
}
break;