test/jdk/jdk/jfr/api/metadata/eventtype/TestUnloadingEventClass.java
changeset 50225 2942ae532175
parent 50113 caf115bb98ad
child 51214 67736b4846a0
--- a/test/jdk/jdk/jfr/api/metadata/eventtype/TestUnloadingEventClass.java	Tue May 22 10:49:20 2018 -0700
+++ b/test/jdk/jdk/jfr/api/metadata/eventtype/TestUnloadingEventClass.java	Tue May 22 23:27:54 2018 +0200
@@ -28,7 +28,6 @@
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.nio.file.Files;
 import java.nio.file.Path;
 
 import jdk.jfr.Event;
@@ -37,6 +36,7 @@
 import jdk.jfr.Recording;
 import jdk.jfr.consumer.RecordingFile;
 import jdk.jfr.internal.JVM;
+import jdk.test.lib.Utils;
 
 /*
  * @test
@@ -164,7 +164,7 @@
     }
 
     private static Object getEventType(Recording r, long id, String eventName) throws IOException {
-        Path p = Files.createTempFile("recording-" + id + "_", ".jfr");
+        Path p = Utils.createTempFile("unloading-event-class-recording-" + id + "_", ".jfr");
         r.dump(p);
         try (RecordingFile rf = new RecordingFile(p)) {
             for (EventType et : rf.readEventTypes()) {