Skip to content

Commit

Permalink
8210802: temp files left by tests in jdk/java/net/httpclient
Browse files Browse the repository at this point in the history
Reviewed-by: chegar, clanger
  • Loading branch information
Hamlin Li committed Sep 18, 2018
1 parent d70db36 commit 1adaa50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/jdk/java/net/httpclient/EchoHandler.java
Expand Up @@ -40,6 +40,7 @@
import java.util.logging.Logger;

public class EchoHandler implements HttpHandler {
static final Path CWD = Paths.get(".");
public EchoHandler() {}

@Override
Expand All @@ -53,7 +54,7 @@ public void handle(HttpExchange t)
map1.add("X-Hello", "world");
map1.add("X-Bye", "universe");
String fixedrequest = map.getFirst("XFixed");
File outfile = File.createTempFile("foo", "bar");
File outfile = Files.createTempFile(CWD, "foo", "bar").toFile();
FileOutputStream fos = new FileOutputStream(outfile);
int count = (int) is.transferTo(fos);
is.close();
Expand Down

2 comments on commit 1adaa50

@RealCLanger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 1adaa50 Aug 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RealCLanger the backport was successfully created on the branch RealCLanger-backport-1adaa503 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

this pull request contains a backport of commit 1adaa503 from the openjdk/jdk repository.

The commit being backported was authored by Hamlin Li on 18 Sep 2018 and was reviewed by Chris Hegarty and Christoph Langer.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev:

$ git fetch https://github.com/openjdk-bots/jdk11u-dev RealCLanger-backport-1adaa503:RealCLanger-backport-1adaa503
$ git checkout RealCLanger-backport-1adaa503
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk11u-dev RealCLanger-backport-1adaa503

Please sign in to comment.