Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8347472 Correct Attribute traversal and writing for Code attributes
  3. JDK-8362630

Release Note: CodeModel Now Delivers Custom and Unknown Attributes

XMLWordPrintable

      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.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: