diff src/share/vm/code/dependencies.cpp @ 6934:4735d2c84362

7200776: Implement default methods in interfaces Summary: Add generic type analysis and default method selection algorithms Reviewed-by: coleenp, acorn
author kamg
date Thu, 11 Oct 2012 12:25:42 -0400
parents 9a9b6e05ffb4
children 18fb7da42534
line wrap: on
line diff
--- a/src/share/vm/code/dependencies.cpp	Thu Nov 01 13:05:47 2012 +0100
+++ b/src/share/vm/code/dependencies.cpp	Thu Oct 11 12:25:42 2012 -0400
@@ -1160,7 +1160,11 @@
 
   // We could also return false if m does not yet appear to be
   // executed, if the VM version supports this distinction also.
-  return !m->is_abstract();
+  return !m->is_abstract() &&
+         !InstanceKlass::cast(m->method_holder())->is_interface();
+         // TODO: investigate whether default methods should be
+         // considered as "concrete" in this situation.  For now they
+         // are not.
 }