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

"jfr metadata" output the @Name annotation twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 15
    • 12
    • hotspot
    • jfr
    • b12

    Description

      PROBLEM
      ------
      There are two places to display the @Name annotation.
      1. output the @Name annotation if the type name contains ".".
      2. when displaying all the annotations in a type, the @Name annotation is also outputted.

      The current implementation has three patterns to output @Name annotation.
      A. Events with "." in the type name is outputted the @Name annotation at locations 1 and 2.
      B. Events without "." in the type name is outputted the @Name annotation at location 2.
      C. Do not be outputted the @Name annotation for primitive types.

      Solution
      -----
      These three patterns should be modified into two patterns as followings.
      a. Primitive types do not be outputted the @Name annotation.
      b. Non-primitive types are outputted @Name annotation regardless of whether the type name contains ".".

      Attachments

        Activity

          People

            cito Chihiro Ito
            cito Chihiro Ito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: