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

BytecodeHelpers using wrong bootstrap method descriptor for condy

XMLWordPrintable

      Courtesy to [~winterhalter], https://github.com/openjdk/jdk/blob/a5d948fb9841f654cccc9567c60e8d28e7d719ae/src/java.base/share/classes/jdk/internal/classfile/impl/BytecodeHelpers.java#L282 BytecodeHelpers is incorrectly using the invocation type while it should use the lookup descriptor for the condy name and type.

      It is accidental that these 2 are identical for static bootstrap methods, which covers almost all the cases; thus this serious issue isn't discovered earlier.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: