< prev index next >

src/share/classes/jdk/jfr/internal/jfc/JFC.java

Print this page
rev 13686 : 8216064: -XX:StartFlightRecording:settings= doesn't work properly
Reviewed-by: mgronlun

*** 125,135 **** --- 125,139 ---- return filename.toString(); } public static String nameFromPath(Path file) throws IOException { String f = nullSafeFileName(file); + if (f.endsWith(JFCParser.FILE_EXTENSION)) { return f.substring(0, f.length() - JFCParser.FILE_EXTENSION.length()); + } else { + return f; + } } // Invoked by DCmdStart public static Configuration createKnown(String name) throws IOException, ParseException { // Known name, no need for permission
< prev index next >