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
If you run the suggestModules task for that project, it only lists jdk.base (and the resulting jpackaged application prints the wrong values, using the US locale). If you explicitly add jdk.localedata via build.gradle, it works.
This can introduce puzzling behaviour in an application (see https://stackoverflow.com/questions/70009017); might it be possible to have a heuristic to suggest jdk.localedata when a non-US locale is used?
The text was updated successfully, but these errors were encountered:
hansi-b
changed the title
Suggested modules should detect required "jdk.localedata"
Suggested modules should include "jdk.localedata" when required
Nov 30, 2021
It seems the suggested modules do not include jdk.localedata when a non-US locale is used in the code.
The following example uses a German locale to correctly parse decimal numbers:
https://github.com/hansi-b/JpackageLocaleTest/blob/master/app/src/main/java/loc_test/App.java
If you run the
suggestModules
task for that project, it only listsjdk.base
(and the resulting jpackaged application prints the wrong values, using the US locale). If you explicitly addjdk.localedata
viabuild.gradle
, it works.This can introduce puzzling behaviour in an application (see https://stackoverflow.com/questions/70009017); might it be possible to have a heuristic to suggest
jdk.localedata
when a non-US locale is used?The text was updated successfully, but these errors were encountered: