Skip to content

Commit 562fdd7

Browse files
committed
Sync documentation of main branch
1 parent aa9bced commit 562fdd7

9 files changed

+91
-89
lines changed

_versions/main/guides/_attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
:graalvm-docs-version: jdk21
1010
:graalvm-flavor: jdk-21
1111
:mandrel-flavor: jdk-21
12-
:surefire-version: 3.5.0
12+
:surefire-version: 3.5.2
1313
:gradle-version: 8.9
1414
:elasticsearch-version: 8.15.0
1515
:elasticsearch-image: docker.io/elastic/elasticsearch:8.15.0

_versions/main/guides/getting-started-testing.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ public class GreetingServiceTest {
369369
----
370370
<1> The `GreetingService` bean will be injected into the test
371371

372+
TIP: If you want to inject/test a `@SessionScoped` bean then it's very likely that the session context is not active and you would receive the `ContextNotActiveException` when a method of the injected bean is invoked. However, it's possible to use the `@io.quarkus.test.ActivateSessionContext` interceptor binding to activate the session context for a specific business method. Please read the javadoc for futher limitations.
373+
372374
== Applying Interceptors to Tests
373375

374376
As mentioned above Quarkus tests are actually full CDI beans, and as such you can apply CDI interceptors as you would

_versions/main/guides/images/webauthn-custom-login.svg

Lines changed: 1 addition & 1 deletion
Loading

_versions/main/guides/images/webauthn-custom-register.svg

Lines changed: 1 addition & 1 deletion
Loading

_versions/main/guides/images/webauthn-login.svg

Lines changed: 1 addition & 1 deletion
Loading

_versions/main/guides/images/webauthn-register.svg

Lines changed: 1 addition & 1 deletion
Loading

_versions/main/guides/native-reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ For example:
602602
----
603603
$ ./mvnw verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-with-native-agent
604604
...
605-
[INFO] --- failsafe:3.5.0:integration-test (default) @ new-project ---
605+
[INFO] --- failsafe:3.5.2:integration-test (default) @ new-project ---
606606
...
607607
[INFO] -------------------------------------------------------
608608
[INFO] T E S T S

_versions/main/guides/security-webauthn.adoc

Lines changed: 61 additions & 70 deletions
Large diffs are not rendered by default.

_versions/main/guides/writing-native-applications-tips.adoc

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public class MyReflectionConfiguration {
197197
}
198198
----
199199

200-
Note: By default the `@RegisterForReflection` annotation will also registered any potential nested classes for reflection. If you want to avoid this behavior, you can set the `ignoreNested` attribute to `true`.
200+
Note: By default the `@RegisterForReflection` annotation will also register any potential nested classes for reflection. If you want to avoid this behavior, you can set the `ignoreNested` attribute to `true`.
201201

202202
==== Using a configuration file
203203

@@ -320,6 +320,23 @@ and in the case of using the Maven configuration instead of `application.propert
320320
----
321321
====
322322

323+
[[managing-proxy-classes-app]]
324+
=== Managing Proxy Classes
325+
326+
While writing native application you'll need to define proxy classes at image build time by specifying the list of interfaces that they implement.
327+
328+
In such a situation, the error you might encounter is:
329+
330+
[source]
331+
----
332+
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=<comma-separated-config-files> and -H:DynamicProxyConfigurationResources=<comma-separated-config-resources> options.
333+
----
334+
335+
To solve the issue you can create a `proxy-config.json` file under the `src/main/resources/META-INF/native-image/<group-id>/<artifact-id>` folder.
336+
For more information about the format of the `proxy-config.json`, see the https://www.graalvm.org/{graalvm-docs-version}/reference-manual/native-image/metadata/#dynamic-proxy-metadata-in-json[Dynamic Proxy Metadata in JSON] documentation.
337+
338+
Alternatively, you can create a quarkus extension and register the proxy classes as described in <<managing-proxy-classes-extension>>.
339+
323340
[[modularity-benefits]]
324341
=== Modularity Benefits
325342

@@ -618,18 +635,10 @@ Using such a construct means that a `--initialize-at-run-time` option will autom
618635
For more information about the `--initialize-at-run-time` option, see the link:https://www.graalvm.org/{graalvm-docs-version}/reference-manual/native-image/optimizations-and-performance/ClassInitialization/[GraalVM Class Initialization in Native Image] guide.
619636
====
620637

638+
[[managing-proxy-classes-extension]]
621639
=== Managing Proxy Classes
622640

623-
While writing native application you'll need to define proxy classes at image build time by specifying the list of interfaces that they implement.
624-
625-
In such a situation, the error you might encounter is:
626-
627-
[source]
628-
----
629-
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=<comma-separated-config-files> and -H:DynamicProxyConfigurationResources=<comma-separated-config-resources> options.
630-
----
631-
632-
Quarkus allows extensions authors to register a `NativeImageProxyDefinitionBuildItem`. An example of doing so is:
641+
Similarly, Quarkus allows extensions authors to register a `NativeImageProxyDefinitionBuildItem`. An example of doing so is:
633642

634643
[source,java]
635644
----
@@ -645,8 +654,8 @@ public class S3Processor {
645654
----
646655

647656
This will allow Quarkus to generate the necessary configuration for handling the proxy class.
648-
Alternatively, you may create a `proxy-config.json` file under the `src/main/resources/META-INF/native-image/<group-id>/<artifact-id>` folder.
649-
For more information about the format of this file, see the https://www.graalvm.org/{graalvm-docs-version}/reference-manual/native-image/metadata/#dynamic-proxy-metadata-in-json[Dynamic Proxy Metadata in JSON] documentation.
657+
658+
Alternatively, you may create a `proxy-config.json` as described in <<managing-proxy-classes-app>>.
650659

651660
[NOTE]
652661
====

0 commit comments

Comments
 (0)