-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quarkus:dev hot reload changes default charset? #3467
Comments
Hi @seseso! I just tried to reproduce this using your project on a MacBook but the curl call always returned You can check the file encoding using the |
I doubt that the save action do a change on charset as if I stop / start the project, everything works fine again.
|
Yes I agree the charset change on save was very unlikely but since it can happen, I had to ask :) Thanks for testing this with Linux! |
I'm not sure this is related but during a hot reload, we're recompiling the changed sources here using a I'll assign this issue to myself if I'm able to reproduce it on my mac. |
I forced a wrong charset and obtained similar results during a hot reload with your project, but I couldn't exactly reproduce the issue since I don't have any Windows computer to test it right now. @geoand: WDYT of the fix in the PR? I'm not sure it's ok to have a hardcoded charset in JavaCompilationProvider since the charset usually comes from the |
@gwenneg I think that it would be OK to have UTF8 for now since that is by far the most common scenario. |
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:
The rest endpoint is this one:
So, after hot reload, the if does not matches.
Environment
uname -a
orver
: Windows 10 PROjava -version
: openjdk version "1.8.0_212"If more information is needed, please let me know as I'll be glad to provide...
The text was updated successfully, but these errors were encountered: