Currently, record patterns in switches are implemented effectively as guards. This does not scale very well for long switches, where the same evaluations may be done many times. It would be better to factor out the common prefixes, and created nested switches.
- relates to
-
JDK-8322992 Javac fails with StackOverflowError when compiling deeply nested synchronized blocks
-
- Resolved
-