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

Desugaring of pattern matching enum switch should be improved

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b31

      Backports

        Description

        Currently, the pattern matching switches over enums desugaring is based on the standard switch enum implementation, but the generated code is not very good, and the javac code that implements the desugaring can be difficult to maintain. Would be better to use the indy bootstrap for pattern matching switches over enums.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jlahoda Jan Lahoda
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: