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

javac -parameters does not emit parameter names for lambda expressions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b47
    • Verification:
      Verified

      Backports

        Description

        As reported at [1], the synthetic method emitted for a lambda expression does not have a MethodParameters attribute, even when javac -parameters is specified. This is an oversight, as other attributes are generated as expected for the synthetic method, e.g. Runtime[In]VisibleTypeAnnotations for annotations on types of lambda formal parameters.

        [1] http://mail.openjdk.java.net/pipermail/type-annotations-spec-comments/2014-March/000071.html

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sadayapalam Srikanth Adayapalam
                  Reporter:
                  abuckley Alex Buckley
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: