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
I have a multi module project, where I get exceptions on hot reload.
If I only change one module at a time (and hot reload), no exception is thrown.
If i change multiple modules at the same time however, I get the exception from below.
In a related bug, #23164, only one additionalModule existed other than the applicationArchive. #24187 was the fix for that situation.
However, in my real world applications, I have a few modules more.. about 20 of them iirc.
My project structure looks like this:
parent
service (business logic)
rest (web stuff, has dependency on service)
backend (module containing the quarkus plugin, has dependency on rest)
Doing a change in service (e.g. adding a method), using the new method in rest, and then reloading the changes in these 2 modules causes the exception.
Expected behavior
Hot reload works flawlessly even when changing multiple modules at once.
Actual behavior
Listening for transport dt_socket at address: 5005
__ ____ __ _____ ___ __ ____ ______
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2022-03-17 20:17:21,863 INFO [io.quarkus] (Quarkus Main Thread) backend 1.0.0-SNAPSHOT on JVM (powered by Quarkus 999-SNAPSHOT) started in 1.481s. Listening on: http://localhost:8080
2022-03-17 20:17:21,875 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2022-03-17 20:17:21,876 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy-reactive, smallrye-context-propagation, vertx]
--
Compilation Failed:
C:\Users\Martin\IdeaProjects\ap-test\rest\src\main\java\org\acme\rest\ExampleResource.java:24: error: method greet in class org.acme.service.ExampleService cannot be applied to given types;
return service.greet("Quarkus");
^
required: java.lang.String,java.lang.String
found: java.lang.String
reason: actual and formal argument lists differ in length
Describe the bug
I have a multi module project, where I get exceptions on hot reload.
If I only change one module at a time (and hot reload), no exception is thrown.
If i change multiple modules at the same time however, I get the exception from below.
In a related bug, #23164, only one additionalModule existed other than the applicationArchive. #24187 was the fix for that situation.
However, in my real world applications, I have a few modules more.. about 20 of them iirc.
My project structure looks like this:
parent
Doing a change in service (e.g. adding a method), using the new method in rest, and then reloading the changes in these 2 modules causes the exception.
Expected behavior
Hot reload works flawlessly even when changing multiple modules at once.
Actual behavior
How to Reproduce?
Download the reproducer:
ap-test.zip
Output of
uname -a
orver
Microsoft Windows [Version 10.0.22000.556]
Output of
java -version
openjdk 17.0.1 2021-10-19 OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12) OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build 17.0.1+12, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.5.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739) Maven home: C:\tools\java\maven Java version: 17.0.1, vendor: Eclipse Adoptium, runtime: C:\tools\java\17-temurin Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response
The text was updated successfully, but these errors were encountered: