JDK-8223697 : jfr tool can't format duration values greater than 1 minute
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11,13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-05-10
  • Updated: 2020-06-01
  • Resolved: 2019-10-22
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 11 JDK 13 JDK 14
11.0.6Fixed 13.0.4Fixed 14 b20Fixed
Description
The 'jfr' tool is unable to format durations that takes more than one minute.

For example, Duration.ofMillis(1234567) becomes "34.567.s" instead of "1234.567 s"
Comments
Fix request (13u): The change applies cleanly, the fix for JDK-8215771 is available in 13u. Sanity check with jfr tests.
28-05-2020

Fix Request (11u): This patch is small and useful for the jfr tool. The patch did not apply cleanly and a review thread was opened [1]. [1] http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-October/002039.html EDIT: Fix Request (11u): After discussion on [1], it was decided to backport JDK-8215771 to make this a clean backport. The patch applies cleanly on top of JDK-8215771 and the tier one tests and jfr tests passed on my machine.
29-10-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/a6c56d661d75 User: egahlin Date: 2019-10-22 21:57:47 +0000
22-10-2019

This is a one liner and it can be quite confusing. I think this should be fixed in JDK 13.
14-05-2019