changeset 4602:ce6d7e43501c

8012961: Do not restrict static interface methods to be private Summary: Lambda changes; spec 0.6.2 - remove the restriction that was added as part of recent changes made to support upcoming changes to compilation of lambda methods. Reviewed-by: dholmes, acorn
author bharadwaj
date Tue, 23 Apr 2013 08:12:14 -0700
parents cc12becb22e7
children 1ea6a35dcbe5
files src/share/vm/prims/methodHandles.cpp
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/methodHandles.cpp	Sun Apr 21 21:05:02 2013 -0700
+++ b/src/share/vm/prims/methodHandles.cpp	Tue Apr 23 08:12:14 2013 -0700
@@ -192,9 +192,8 @@
     flags |= IS_CONSTRUCTOR | (JVM_REF_invokeSpecial << REFERENCE_KIND_SHIFT);
   } else if (mods.is_static()) {
     flags |= IS_METHOD | (JVM_REF_invokeStatic << REFERENCE_KIND_SHIFT);
-     // Check if this method is a lambda method that is generated as
-     // private static method.
-     if (m->is_private() && m->method_holder()->is_interface()) {
+     // Get vindex from itable if method holder is an interface.
+     if (m->method_holder()->is_interface()) {
        vmindex = klassItable::compute_itable_index(m);
      }
   } else if (receiver_limit != mklass &&