GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Return the changed classes as response of redefine classes command (#… · mfussenegger/java-debug@d91322d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core
    • adapter/handler
      • HotCodeReplaceHandler.java
    • protocol
      • Responses.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/HotCodeReplaceHandler.java‎

Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/HotCodeReplaceHandler.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2017 Microsoft Corporation and others.
2+
* Copyright (c) 2017-2019 Microsoft Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -25,6 +25,7 @@
2525
import com.microsoft.java.debug.core.protocol.Requests;
2626
import com.microsoft.java.debug.core.protocol.Requests.Arguments;
2727
import com.microsoft.java.debug.core.protocol.Requests.Command;
28+
import com.microsoft.java.debug.core.protocol.Responses;
2829

2930
public class HotCodeReplaceHandler implements IDebugRequestHandler {
3031
@Override
@@ -58,7 +59,10 @@ public CompletableFuture<Response> handle(Command command, Arguments arguments,
5859

5960
IHotCodeReplaceProvider provider = context.getProvider(IHotCodeReplaceProvider.class);
6061

61-
return provider.redefineClasses().thenApply(classNames -> response);
62+
return provider.redefineClasses().thenApply(classNames -> {
63+
response.body = new Responses.RedefineClassesResponse(classNames.toArray(new String[0]));
64+
return response;
65+
});
6266
}
6367

6468
}
Collapse file

‎com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/protocol/Responses.java‎

Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/protocol/Responses.java
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2017 Microsoft Corporation and others.
2+
* Copyright (c) 2017-2019 Microsoft Corporation and others.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -245,4 +245,15 @@ public ExceptionInfoResponse(String exceptionId, String description, ExceptionBr
245245
this.details = details;
246246
}
247247
}
248+
249+
public static class RedefineClassesResponse extends ResponseBody {
250+
public String[] changedClasses = new String[0];
251+
252+
/**
253+
* Constructor.
254+
*/
255+
public RedefineClassesResponse(String[] changedClasses) {
256+
this.changedClasses = changedClasses;
257+
}
258+
}
248259
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.