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

javac -parameters does not emit parameter names for lambda expressions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8
    • tools
    • b47
    • Verified

        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

              sadayapalam Srikanth Adayapalam (Inactive)
              abuckley Alex Buckley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: