You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, you will need to install the Scala 3 compiler, the Scala Maven plugin, and to fix an odd bug with the way that the Scala 3 compiler Maven dependencies are resolved.
@@ -519,5 +510,5 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
519
510
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
520
511
521
512
## TODOs
522
-
- correctly generate OpenAPI Spec for methods returning `Future[T]` or `Promise[T]`, e.g. similar to [Quarkus #8499](https://github.com/quarkusio/quarkus/issues/8499)
523
-
- ArC (Quarkus' CDI implementation) has special handling for `CompletionStage[T]`, maybe we should add similar handling for `Future[T]` and `Promise[T]`, see [ActiveRequestContextInterceptor](https://github.com/quarkusio/quarkus/blob/24d3e5262d20fdaa8c056d59f012f8c7b5b1c5c8/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ActivateRequestContextInterceptor.java) ?
513
+
- correctly generate OpenAPI Spec for methods returning Future[T] or Promise[T], e.g. similar to [Quarkus #8499](https://github.com/quarkusio/quarkus/issues/8499)
514
+
- ArC (Quarkus' CDI implementation) has special handling for CompletionStage[T], maybe we should add similar handling for Future[T] and Promise[T], see [ActiveRequestContextInterceptor](https://github.com/quarkusio/quarkus/blob/24d3e5262d20fdaa8c056d59f012f8c7b5b1c5c8/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ActivateRequestContextInterceptor.java) ?
Copy file name to clipboardExpand all lines: futures/deployment/src/main/scala/io/quarkiverse/scala/scala3/futures/deployment/Scala3FuturesJavaProcessor.java
Copy file name to clipboardExpand all lines: futures/integration-tests/src/test/scala/io/quarkiverse/scala/scala3/futures/it/Scala3FuturesResourceTest.scala
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ class Scala3FuturesResourceTest {
15
15
Given {
16
16
_.params("something", "value")
17
17
}.When {
18
-
_.get("/hello").prettyPeek()
18
+
_.get("/hello")
19
19
}.Then {
20
20
_.statusCode(200).body(is("Hello from Scala 3.4.1"))
21
21
}
@@ -26,7 +26,7 @@ class Scala3FuturesResourceTest {
26
26
Given {
27
27
_.params("something", "value")
28
28
}.When {
29
-
_.get("/simple-future").prettyPeek()
29
+
_.get("/simple-future")
30
30
}.Then {
31
31
_.statusCode(200).body(is("Hello from a Future in Scala 3.4.1"))
32
32
}
@@ -37,7 +37,7 @@ class Scala3FuturesResourceTest {
37
37
Given {
38
38
_.params("something", "value")
39
39
}.When {
40
-
_.get("/simple-promise").prettyPeek()
40
+
_.get("/simple-promise")
41
41
}.Then {
42
42
_.statusCode(200).body(is("Promise returned"))
43
43
}
@@ -50,7 +50,9 @@ class Scala3FuturesResourceTest {
Copy file name to clipboardExpand all lines: futures/runtime/src/main/scala/io/quarkiverse/scala/scala3/futures/runtime/Scala3FutureResponseHandler.java
Copy file name to clipboardExpand all lines: futures/runtime/src/main/scala/io/quarkiverse/scala/scala3/futures/runtime/Scala3FutureReturnTypeMethodScanner.java
0 commit comments