hotspot/src/share/vm/oops/klassVtable.cpp
changeset 21770 e8932d2fda2c
parent 21556 e75cd34a59e0
child 21913 0e2fd7282ac6
--- a/hotspot/src/share/vm/oops/klassVtable.cpp	Fri Nov 22 13:42:46 2013 -0800
+++ b/hotspot/src/share/vm/oops/klassVtable.cpp	Tue Nov 26 18:16:04 2013 -0500
@@ -1076,7 +1076,12 @@
       LinkResolver::lookup_instance_method_in_klasses(target, _klass, m->name(), m->signature(), CHECK);
     }
     if (target == NULL || !target->is_public() || target->is_abstract()) {
-      // Entry do not resolve. Leave it empty
+      // Entry does not resolve. Leave it empty for AbstractMethodError.
+        if (!(target == NULL) && !target->is_public()) {
+          // Stuff an IllegalAccessError throwing method in there instead.
+          itableOffsetEntry::method_entry(_klass(), method_table_offset)[m->itable_index()].
+              initialize(Universe::throw_illegal_access_error());
+        }
     } else {
       // Entry did resolve, check loader constraints before initializing
       // if checkconstraints requested