NumberFormat.getInstance(locale).parse()
does not work correctly even after -H:+IncludeAllLocales
in native mode
#36876
Labels
Milestone
Describe the bug
Sample code fragment, wherein
beanT.locale
=Locale.FRANCE
Logs in JVM Mode
Logs in Native Mode
GraalVM is picking up the options as per compilation logs
Expected behavior
Native and JVM mode should have the same outputs when using
NumberFormat.getInstance(locale).parse()
, given the same locale and inputActual behavior
Native and JVM modes have varying outputs given the same locale and input when using
NumberFormat.getInstance(locale).parse()
How to Reproduce?
Reproducer: https://github.com/vincejv/qbt-expt-test
Steps to reproduce:
qbittorrent.exporter.locale
asfr-FR
or any other locale besidesen-US
localhost:17871/metrics/hello
endpointOutput of
uname -a
orver
Both Github actions and Linux vince-MS-7681 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
21.0.1+12-LTS, vendor version: Mandrel-23.1.1.0-Final
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.5.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.3
Additional information
Blocking my proposed PR in migrating an OSS prometheus exporter to Quarkus
caseyscarborough/qbittorrent-exporter#20
The text was updated successfully, but these errors were encountered: