jdk/src/share/classes/com/sun/tools/example/debug/expr/LValue.java
changeset 24125 b85eeaae56c7
parent 22050 72e7501ac569
child 24127 5d05d4c0de7f
equal deleted inserted replaced
24124:5f5f7f7a4328 24125:b85eeaae56c7
   557             if (matchingMethod == null) {
   557             if (matchingMethod == null) {
   558                 return jdiValue = refType.getValue(matchingField);
   558                 return jdiValue = refType.getValue(matchingField);
   559             } else if (refType instanceof ClassType) {
   559             } else if (refType instanceof ClassType) {
   560                 ClassType clazz = (ClassType)refType;
   560                 ClassType clazz = (ClassType)refType;
   561                 return jdiValue = clazz.invokeMethod(thread, matchingMethod, methodArguments, 0);
   561                 return jdiValue = clazz.invokeMethod(thread, matchingMethod, methodArguments, 0);
       
   562             } else if (refType instanceof InterfaceType) {
       
   563                 InterfaceType iface = (InterfaceType)refType;
       
   564                 return jdiValue = iface.invokeMethod(thread, matchingMethod, methodArguments, 0);
   562             } else {
   565             } else {
   563                 throw new InvalidTypeException("Cannot invoke static method on " +
   566                 throw new InvalidTypeException("Cannot invoke static method on " +
   564                                          refType.name());
   567                                          refType.name());
   565             }
   568             }
   566         }
   569         }