diff src/share/vm/interpreter/linkResolver.cpp @ 17666:a81bc2b2c4d3

8032010: Attempt to resolve abstract method in concrete class fails with AbstractMethodError Summary: removing a check in LinkResolver::resolve_method() to conform with a change in JVMS-8 5.4.3.3. Method Resolution Reviewed-by: coleenp, lfoltan
author ccheung
date Wed, 05 Feb 2014 15:14:47 -0800
parents 1a023fd29afb
children d8041d695d19 386dd1c71858
line wrap: on
line diff
--- a/src/share/vm/interpreter/linkResolver.cpp	Fri Feb 07 18:30:27 2014 -0500
+++ b/src/share/vm/interpreter/linkResolver.cpp	Wed Feb 05 15:14:47 2014 -0800
@@ -564,16 +564,7 @@
     }
   }
 
-  // 5. check if method is concrete
-  if (resolved_method->is_abstract() && !resolved_klass->is_abstract()) {
-    ResourceMark rm(THREAD);
-    THROW_MSG(vmSymbols::java_lang_AbstractMethodError(),
-              Method::name_and_sig_as_C_string(resolved_klass(),
-                                                      method_name,
-                                                      method_signature));
-  }
-
-  // 6. access checks, access checking may be turned off when calling from within the VM.
+  // 5. access checks, access checking may be turned off when calling from within the VM.
   if (check_access) {
     assert(current_klass.not_null() , "current_klass should not be null");