-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
Type patterns are LocalVariableDeclarations, and so have an appropriate encoding for their type annotations. Record patterns have no appropriate target_type. JVMS should update Tables 4.7.20-B and 4.7.20.1 to include annotations appearing on the left of `RecordPattern`s nested pattern list.
- relates to
-
JDK-8298154 Treat case labels as full type contexts for complete type annotation support in Record Patterns
-
- New
-
-
JDK-8297602 Compiler crash with type annotation and generic record during pattern matching
-
- Resolved
-