Skip to content

quarkus:dev hot reload changes default charset? #3467

@seseso

Description

@seseso

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:

  1. mvn clean install -DskipTests quarkus:dev
  2. curl http://localhost:8085/hello/S%C3%A9rgio
  3. Excpected output: hello Boss!
  4. Change a source and save, triggering hot reload
  5. curl http://localhost:8085/hello/S%C3%A9rgio
  6. 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 or ver: 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...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions