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

Synthetic name of serializable lambda methods should not contain negative numbers

    XMLWordPrintable

Details

    • b82
    • Not verified

    Description

      Serializable lambdas are desugared to methods where name follows following pattern:

           lambda$mmm$kkkk$nnn

      Where mmm is the method name and kkk is the hashcode of the method signature, and nnn is a sequentially assigned number. That way, dependencies on lambdas from other methods will be minimized.

      If hashcode is a negative number the impl will add a '-' to the method name - we should aboid that, i.e. by using an hexadecimal representation of the hashcode.

      Attachments

        Activity

          People

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: