-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 25
-
Component/s: core-libs
In the previous release, when a `java.lang.classfile.CodeModel` is traversed by a `forEach`, `CustomAttribute` and `UnknownAttribute` were not delivered. Now, they are delivered, bringing their delivery behavior in parity with `ClassModel`, `FieldModel`, and `MethodModel`.
Users who traverse a `CodeModel` should review their handling of these two attributes when they are delivered as `CodeElement`. In particular, users using exhaustive pattern matching switches to handle `CodeElement` will encounter a compile error and must update their code.
Users who traverse a `CodeModel` should review their handling of these two attributes when they are delivered as `CodeElement`. In particular, users using exhaustive pattern matching switches to handle `CodeElement` will encounter a compile error and must update their code.