Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In certain scenarios Apache CXF does aggressive code generation and dynamic class loading at runtime. This violates one of the GraalVM's ahead-of-time compilation limitations which states that "... all classes and all bytecodes that are reachable at run time must be known at build time". Since 3.4.2 / 3.5.x there is a way to capture all dynamically generated classes in order to include them into the native image at build time and then use class loading (instead of class generation) at runtime. It eliminates the need for dynamic class generation and loading. The capturing capability is provided by GeneratedClassClassLoaderCapture extension (shown below).

...

The stored generated classes should be injected at build time, whereas the following extensions replace dynamic class generation with class loading of the captured (generated) classes at runtime:

...