equal
deleted
inserted
replaced
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 } |