< prev index next >

src/jdk.management.jfr/share/classes/jdk/management/jfr/RecordingInfo.java

Print this page

        

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package jdk.management.jfr;
 
+import java.nio.file.Path;
 import java.time.Duration;
 import java.time.Instant;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;

@@ -34,11 +35,10 @@
 import javax.management.openmbean.CompositeData;
 import javax.management.openmbean.TabularData;
 
 import jdk.jfr.Recording;
 import jdk.jfr.RecordingState;
-import jdk.jfr.internal.management.ManagementSupport;
 
 /**
  * Management representation of a {@code Recording}.
  *
  * @see Recording

@@ -78,11 +78,12 @@
         maxSize = recording.getMaxSize();
         Instant s = recording.getStartTime();
         startTime = s == null ? 0L : s.toEpochMilli();
         Instant st = recording.getStopTime();
         stopTime = st == null ? 0L : st.toEpochMilli();
-        destination = ManagementSupport.getDestinationOriginalText(recording);
+        Path p = recording.getDestination();
+        destination = p == null ? null : p.toString();
         Duration duration = recording.getDuration();
         durationInSeconds = duration == null ? 0 : duration.getSeconds();
         settings = recording.getSettings();
     }
 
< prev index next >