test/jdk/jdk/jfr/event/io/EvilInstrument.java
changeset 55199 3a09397c147e
parent 51214 67736b4846a0
child 58573 79da7db7e9b1
--- a/test/jdk/jdk/jfr/event/io/EvilInstrument.java	Tue Jun 04 16:33:37 2019 +0200
+++ b/test/jdk/jdk/jfr/event/io/EvilInstrument.java	Tue Jun 04 07:53:12 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -38,6 +38,7 @@
 import java.net.Socket;
 import java.security.ProtectionDomain;
 import java.util.concurrent.CountDownLatch;
+import jdk.test.lib.Utils;
 
 
 /**
@@ -87,7 +88,7 @@
     }
 
     public static File createScratchFile() throws IOException {
-        return File.createTempFile("EvilTransformer", null, new File(".")).getAbsoluteFile();
+        return Utils.createTempFile("EvilTransformer", null).toFile();
     }
 
     class EvilTransformer implements ClassFileTransformer {