Module java.base
Package java.lang.classfile

# Enum ClassFile.AttributesProcessingOption

≠
public static final enum AttributesProcessingOption
extends java.lang.Enum<java.lang.classfile.ClassFile.AttributesProcessingOption>
implements java.lang.classfile.ClassFile.Option
Comparing master and cf

All Implemented Interfaces:
  `Serializable, ClassFile.Option, Comparable<ClassFile.AttributesProcessingOption>, Constable`

Enclosing interface:
  `ClassFile`

public static enum ClassFile.AttributesProcessingOption extends Enum<ClassFile.AttributesProcessingOption> implements ClassFile.Option
Option The option describing whether to process retain or discard unrecognized or problematic original attributes when a class, record component, field, method or code is transformed in its exploded form. Default attributes that cannot verify their correctness after a transformation. The default is `Moved to a link with destination #PASS_ALL_ATTRIBUTES.PASS_ALL_ATTRIBUTES` Moved to a link with destination #PASS_ALL_ATTRIBUTES. to process retain all original attributes as-is.

Moved to a paragraph.Many attributes only depend on data managed by the Class-File API, such as constant pool entries or labels into the `code` array. If they change, the Class-File API knows their updated values and can write a correct version by expanding the structures and recomputing the updated indexes, known as "explosion". However, some attributes, such as type annotations, depend on arbitrary data that may be modified during transformations but the Class-File API does not track, such as index to an entry in the interfaces of a `ClassFile` structure. As a result, the Class-File API cannot verify the correctness of such information.

Since:
  24
See Also:
  - `AttributeMapper.AttributeStability`

## Enum Constants

- ≠
  DROP_UNKNOWN_ATTRIBUTES
  Comparing master and cf

  ### DROP_UNKNOWN_ATTRIBUTES

  public static final ClassFile.AttributesProcessingOption DROP_UNKNOWN_ATTRIBUTES
  Drop unknown attributes attributes with `AttributeMapper.AttributeStability.UNKNOWN` data dependency during transformation.
- ≠
  DROP_UNSTABLE_ATTRIBUTES
  Comparing master and cf

  ### DROP_UNSTABLE_ATTRIBUTES

  public static final ClassFile.AttributesProcessingOption DROP_UNSTABLE_ATTRIBUTES
  Drop unknown and unstable original attributes attributes with `AttributeMapper.AttributeStability.UNSTABLE` or higher data dependency during transformation.
- ≠
  PASS_ALL_ATTRIBUTES
  Comparing master and cf

  ### PASS_ALL_ATTRIBUTES

  public static final ClassFile.AttributesProcessingOption PASS_ALL_ATTRIBUTES
  Process Retain all original attributes during transformation.

## Methods

- =
  public static java.lang.classfile.ClassFile.AttributesProcessingOption valueOf(java.lang.String arg0)
- =
  public static java.lang.classfile.ClassFile.AttributesProcessingOption[] values()

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
ClassFile.AttributesProcessingOption |  |  |  |  |  |  | 4 | 7 | 1 | 12
DROP_UNKNOWN_ATTRIBUTES |  |  |  |  |  |  | 2 | 1 |  | 3
DROP_UNSTABLE_ATTRIBUTES |  |  |  |  |  |  | 2 | 1 |  | 3
PASS_ALL_ATTRIBUTES |  |  |  |  |  |  | 1 | 1 |  | 2
Total |  |  |  |  |  |  | 9 | 10 | 1 | 20