JDK-8215237 : jdk.jfr.Recording javadoc does not compile
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-12-11
  • Updated: 2020-04-27
  • Resolved: 2018-12-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12 JDK 13 Other
12 b24Fixed 13Fixed openjdk8u262Fixed
Related Reports
Relates :  
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
Comments
Replacing jdk8u-fix-request with link to JDK-8239140
17-02-2020

RFC: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-January/011063.html
30-01-2020