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

JavaAdapterFactory.isAutoConvertibleFromFunction should be more robust

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b46
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Sometimes, a Java adapter can't be generated because it's simply too big, e.g. a class with somewhere between 4600-4700 methods will do. Since adapters are being generated also to determine whether a class can be treated as a SAM type (JDK-8067935), even querying this can fail for large classes.

        As a basic fix, at least we should capture all ASM related error conditions and robustly report it and also presume that for such classes isAutoConvertibleFromFunction is false

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  attila Attila Szegedi
                  Reporter:
                  attila Attila Szegedi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: