diff src/share/vm/classfile/classFileParser.cpp @ 12823:ac9cb1d5a202

8009130: Lambda: Fix access controls, loader constraints. Summary: New default methods list with inherited superinterface methods Reviewed-by: minqi, sspitsyn, coleenp
author acorn
date Mon, 07 Oct 2013 12:20:28 -0400
parents 268e7a2178d7
children 1a93f2c5945a
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp	Sun Oct 06 16:13:50 2013 +0200
+++ b/src/share/vm/classfile/classFileParser.cpp	Mon Oct 07 12:20:28 2013 -0400
@@ -4080,8 +4080,7 @@
 
     // Generate any default methods - default methods are interface methods
     // that have a default implementation.  This is new with Lambda project.
-    if (has_default_methods && !access_flags.is_interface() &&
-        local_interfaces->length() > 0) {
+    if (has_default_methods && !access_flags.is_interface() ) {
       DefaultMethods::generate_default_methods(
           this_klass(), &all_mirandas, CHECK_(nullHandle));
     }