Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8251041 [lworld] Investigate interplay between Records and Inline types
  3. JDK-8273202

[lworld] MethodParameters are not generated for factories for primitive records

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      When a plain record is generated, all of it's constructors get MethodParameters-attributes generated into the classfile.

      One would assume that the same would happen for the primitive records
      static object factory methods, so that they might look more or less the same from a reflection point of view.

      I'll investigate whether they would behave the same (reflection-wise) so they could get the same treatment in simple reflection cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jespersm Jesper Møller
              Reporter:
              jespersm Jesper Møller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: