jdk/src/share/classes/com/sun/tools/example/debug/expr/LValue.java
changeset 24125 b85eeaae56c7
parent 22050 72e7501ac569
child 24127 5d05d4c0de7f
--- a/jdk/src/share/classes/com/sun/tools/example/debug/expr/LValue.java	Mon Apr 28 13:49:49 2014 +0100
+++ b/jdk/src/share/classes/com/sun/tools/example/debug/expr/LValue.java	Tue Apr 29 11:15:21 2014 +0200
@@ -559,6 +559,9 @@
             } else if (refType instanceof ClassType) {
                 ClassType clazz = (ClassType)refType;
                 return jdiValue = clazz.invokeMethod(thread, matchingMethod, methodArguments, 0);
+            } else if (refType instanceof InterfaceType) {
+                InterfaceType iface = (InterfaceType)refType;
+                return jdiValue = iface.invokeMethod(thread, matchingMethod, methodArguments, 0);
             } else {
                 throw new InvalidTypeException("Cannot invoke static method on " +
                                          refType.name());