in core/src/main/java/com/jetbrains/sa/jdwp/JDWP.java [1410:1432]
public void reply(VirtualMachineImpl vm, PacketStream answer, PacketStream command) {
ReferenceTypeImpl type = command.readReferenceType();
List<InterfaceTypeImpl> interfaces;
if (type instanceof ClassTypeImpl) {
interfaces = ((ClassTypeImpl) type).interfaces();
}
else if (type instanceof InterfaceTypeImpl) {
interfaces = ((InterfaceTypeImpl) type).superinterfaces();
}
else {
answer.pkt.errorCode = Error.INVALID_CLASS;
return;
}
// //int interfacesCount = answer.readInt();
answer.writeInt(interfaces.size());
for (InterfaceTypeImpl iface : interfaces) {
answer.writeClassRef(iface.uniqueID());
}
//interfaces = new InterfaceTypeImpl[interfacesCount];
//for (int i = 0; i < interfacesCount; i++) {;
//interfaces[i] = vm.interfaceType(answer.readClassRef());
//}
}