diff --git a/docs/src/main/asciidoc/writing-native-applications-tips.adoc b/docs/src/main/asciidoc/writing-native-applications-tips.adoc index 2dd53e2c76bd7..04afc5df02b1b 100644 --- a/docs/src/main/asciidoc/writing-native-applications-tips.adoc +++ b/docs/src/main/asciidoc/writing-native-applications-tips.adoc @@ -61,7 +61,7 @@ will include: If globs are not sufficiently precise for your use case and you need to rely on regular expressions, or if you prefer relying on the GraalVM infrastructure, you can also create a `resource-config.json` JSON file defining which resources should be included. -Ideally this, and other native image configuration files, should be placed under the `src/main/resources/META-INF/native-image//` folder. +This, and other native image configuration files, should be placed under the `src/main/resources/META-INF/native-image//` folder. This way they will be automatically parsed by the native build, without additional configuration. [WARNING] @@ -302,9 +302,9 @@ In such a situation, the error you might encounter is: com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class defined by interfaces [interface org.apache.http.conn.HttpClientConnectionManager, interface org.apache.http.pool.ConnPoolControl, interface com.amazonaws.http.conn.Wrapped] not found. Generating proxy classes at runtime is not supported. Proxy classes need to be defined at image build time by specifying the list of interfaces that they implement. To define proxy classes use -H:DynamicProxyConfigurationFiles= and -H:DynamicProxyConfigurationResources= options. ---- -Solving this issue requires adding the `-H:DynamicProxyConfigurationResources=` option and to provide a dynamic proxy configuration file. - -For more information about the format of this file, see the link:https://www.graalvm.org/{graalvm-docs-version}/reference-manual/native-image/guides/configure-dynamic-proxies/[GraalVM Configure Dynamic Proxies Manually] guide. +Solving this issue requires creating a `proxy-config.json` file under the `src/main/resources/META-INF/native-image//` folder. +This way the configuration will be automatically parsed by the native build, without additional configuration. +For more information about the format of this file, see the link:https://www.graalvm.org/{graalvm-docs-version}/reference-manual/native-image/metadata/#dynamic-proxy-metadata-in-json[Dynamic Proxy Metadata in JSON] documentation. [[modularity-benefits]] === Modularity Benefits @@ -581,7 +581,7 @@ For more information about GraalVM resource handling in native executables, see ==== -== Delay class initialization +=== Delay class initialization Quarkus simplifies things by allowing extensions authors to simply register a `RuntimeInitializedClassBuildItem`. A simple example of doing so could be: