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

Incorrect method name in invokedynamic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • 18
    • tools
    • None
    • b02

      The invokedynamic instruction, besides the reference to the bootstrap method, also provides a name and type. This name and type is then passed to the bootstrap method. But, in javac, if multiple invokedynamic instructions have the same bootstrap method and (dynamic) type, only one name will be used, even if the DynamicMethodSymbols were created with different names. It is necessary to produce different references to NameAndType for the different invokedynamic instructions.

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: