--- old/src/jdk.jfr/share/classes/jdk/jfr/internal/dcmd/DCmdDump.java 2019-04-24 21:32:17.447208105 +0900 +++ new/src/jdk.jfr/share/classes/jdk/jfr/internal/dcmd/DCmdDump.java 2019-04-24 21:32:17.155208431 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 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 @@ -124,6 +124,10 @@ Recording recording = null; if (name != null) { recording = findRecording(name); + var dest = recording.getDestination(); + if ((filename == null) && (dest != null)) { + filename = dest.toString(); + } } PlatformRecorder recorder = PrivateAccess.getInstance().getPlatformRecorder(); synchronized (recorder) {