8026185: nsk/jvmit/GetMethodDeclaringClass/declcls001 failed
Summary: Missed initialization. Thanks Coleen.
Reviewed-by: coleenp, minqi
--- 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);
}