Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8215237

jdk.jfr.Recording javadoc does not compile

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11, 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
      jfr
    • Resolved In Build:
      b24

      Backports

        Description

        The class Javadoc of jdk.jfr.Recording contains the following code which does not compile:

        Configuration c = Configuration.getConfiguration("default");
        Recording r = new Recording(c);
        r.start();
        System.gc();
        Thread.sleep(5000);
        r.stop();
        r.copyTo(Files.createTempFile("my-recording", ".jfr"));

        The issue is that Recording has no #copyTo(Path) method. Probably the #dump(Path) method was intended.

        http://mail.openjdk.java.net/pipermail/hotspot-jfr-dev/2018-December/000299.html

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  egahlin Erik Gahlin
                  Reporter:
                  egahlin Erik Gahlin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: