8026185: nsk/jvmit/GetMethodDeclaringClass/declcls001 failed
authoracorn
Wed, 09 Oct 2013 17:57:17 -0400
changeset 20396 0ed0e7aa1ed8
parent 20395 55915f609319
child 20397 2d8d8790819a
child 20673 6ae7d35cf89d
8026185: nsk/jvmit/GetMethodDeclaringClass/declcls001 failed Summary: Missed initialization. Thanks Coleen. Reviewed-by: coleenp, minqi
hotspot/src/share/vm/oops/instanceKlass.cpp
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp	Tue Oct 08 16:58:23 2013 -0400
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp	Wed Oct 09 17:57:17 2013 -0400
@@ -1458,7 +1458,7 @@
 // Do NOT return private or static methods
 Method* InstanceKlass::lookup_method_in_ordered_interfaces(Symbol* name,
                                                          Symbol* signature) const {
-  Method* m;
+  Method* m = NULL;
   if (default_methods() != NULL) {
     m = find_method(default_methods(), name, signature);
   }