Skip to content

Commit

Permalink
Add note about default Kotlin interface methods in REST Client docs
Browse files Browse the repository at this point in the history
Relates to: quarkusio#22231
  • Loading branch information
geoand committed Dec 15, 2021
1 parent c8212c7 commit f87bc31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/main/asciidoc/rest-client-reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,12 @@ public interface ExtensionsService {
<4> ... as well as a value from your application's configuration
<5> ... or as a normal JAX-RS `@HeaderParam` annotated argument

[NOTE]
====
When using Kotlin, if default methods are going to be leveraged, then the Kotlin compiler needs to be configured to use Java's default interface capabilities.
See link:https://kotlinlang.org/docs/java-to-kotlin-interop.html#default-methods-in-interfaces[this] for more details.
====

A `ClientHeadersFactory` can look as follows:

[source, java]
Expand Down

0 comments on commit f87bc31

Please sign in to comment.