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

Desugaring of pattern matching enum switch should be improved

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 17
    • 17
    • tools
    • None
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: