-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Running a project with quarkus:dev, everything works fine. When triggering hot reload (changing some source), the behavior changes and Strings that exists in the code seems to be interpreted in a different charset.
I created a small project to reproduce this error: https://github.com/seseso/quarkus-hot-reload
Steps:
- mvn clean install -DskipTests quarkus:dev
- curl http://localhost:8085/hello/S%C3%A9rgio
- Excpected output: hello Boss!
- Change a source and save, triggering hot reload
- curl http://localhost:8085/hello/S%C3%A9rgio
- Excpected output: hello Boss! Actually, it returns Hello Sérgio
The rest endpoint is this one:
@GET
@Path("/{name}")
@Produces(MediaType.TEXT_PLAIN)
public String hello(@PathParam("name") String name) {
if("Sérgio".equals(name)) {
return "hello Boss!";
}
return "hello " + name;
}
So, after hot reload, the if does not matches.
Environment
- Output of
uname -a
orver
: Windows 10 PRO - Output of
java -version
: openjdk version "1.8.0_212" - GraalVM version (if different from Java): Not using
- Quarkus version or git rev: 0.20.0
If more information is needed, please let me know as I'll be glad to provide...