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

JFR tool: print does not work with inner class events

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      jfr
    • Resolved In Build:
      b03

      Description

      For events that are inner classes (e.g. EventGeneratorLoop$SimpleEvent) jfr tool's 'print' command does not print any information.

      Steps to reproduce:
        - use the attached EventGeneratorLoop.java
        - generate a recording: java -XX:StartFlightRecording:dumponexit=true EventGeneratorLoop.java 10
        - use 'jfr summary': observe that the event of interest is part of the summary:
          EventGeneratorLoop$SimpleEvent 10 220
        - attempt to print details for this event: jfr print --events EventGeneratorLoop$SimpleEvent <RECORDING_FILE>
          Nothing is printed
        - also tried to use event's short name (also part of @label annotation):
           jfr print --events SimpleEvent <RECORDING_FILE>
           Does not work
          
      ===========
      Reproducible: always
      Platform agnostic

        Attachments

          Activity

            People

            Assignee:
            egahlin Erik Gahlin
            Reporter:
            mseledtsov Mikhailo Seledtsov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: