Module java.base
Package java.lang.classfile

# Interface ClassFile.ClassHierarchyResolverOption

≠
public abstract static sealed interface ClassHierarchyResolverOption
extends java.lang.classfile.ClassFile.Option
permits jdk.internal.classfile.impl.ClassFileImpl.ClassHierarchyResolverOptionImpl
Comparing master and cf

All Superinterfaces:
  `ClassFile.Option`

Enclosing interface:
  `ClassFile`

public static sealed interface ClassFile.ClassHierarchyResolverOption extends ClassFile.Option
Option The option describing the class hierarchy resolver to use when generating stack maps or verifying classes. The default is `ClassHierarchyResolver.defaultResolver()` , which uses core reflection to find a class with a given name in system class loader and inspect it, and is insufficient if a class is not present in the system class loader as in applications, or if loading of system classes is not desired as in agents.

Moved to a paragraph. A `ClassHierarchyResolverOption` contains a `ClassHierarchyResolver` . The resolver must be able to process all classes and interfaces, including those appearing as the component types of array types, that appear in the operand stack of the generated bytecode. If the resolver fails on any of the classes and interfaces with an `IllegalArgumentException` , the `class` file generation fails.

See Java Virtual Machine Specification:
  4.10.1.2 Verification Type System
Since:
  24
See Also:
  Moved to a definition list with class notes.Moved to a definition.Moved to an unordered list with class tag-list.
  - `ClassHierarchyResolver`

## Methods

- =
  public abstract java.lang.classfile.ClassHierarchyResolver classHierarchyResolver()
- ≠
  public static java.lang.classfile.ClassFile.ClassHierarchyResolverOption of(java.lang.classfile.ClassHierarchyResolver arg0)
  Comparing master and cf

  ### of

  static ClassFile.ClassHierarchyResolverOption of (ClassHierarchyResolver classHierarchyResolver)
  Returns an option describing the class hierarchy resolver to use when generating stack maps.
  Parameters:
    `classHierarchyResolver` - the resolver
  Returns:
    an option describing the class hierarchy resolver to use when generating stack maps

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
ClassFile.ClassHierarchyResolverOption |  |  |  |  |  |  | 7 | 1 |  | 8
of(ClassHierarchyResolver) |  |  |  |  |  |  |  |  | 4 | 4
Total |  |  |  |  |  |  | 7 | 1 | 4 | 12