Openbravo Issue Tracking System - Localization Pack: Spain |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0051679 | Localization Pack: Spain | AEAT 303 | public | 2023-02-23 10:22 | 2023-02-28 09:35 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0051679: JDK19 deprecates Locale(String, String) constructor - splp |
Description | This is essentially older issue 49434 again. As some newly added code in aeat303 module reintroducing that problem again.
See https://jdk.java.net/19/release-notes [^] [^]
Deprecation of Locale class constructors (JDK-8282819)
core-libs/java.util:i18n
New Locale.of() factory methods replace deprecated Locale constructors. The factory methods are efficient and reuse existing Locale instances. Locales are also provided by Locale.forLanguageTag() and Locale.Builder.
[java] 4. WARNING in /srv/ci/workspace/mod-simple-ci50.52004/modules/org.openbravo.module.aeat303.es/src/org/openbravo/module/aeat303/es/report/v2023/AEAT303Report2023.java (at line 59)
[java] SimpleDateFormat sdf = new SimpleDateFormat(format, new Locale("es", "ES"));
[java] ^^^^^^^^^^^^^^^^^^
[java] The constructor Locale(String, String) is deprecated since version 19 |
Steps To Reproduce | Compile using JDK19 (or 20 now)
|
Proposed Solution | Use locale builder [1] which is available since JDK7
[1] https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.Builder.html [^] [^] |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0049434 | | closed | igor_trebol | JDK19 deprecates Locale(String, String) constructor - splp | caused by | feature request | 0050829 | | closed | mgonzalezh | New Design 303 2023 y siguientes |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2023-02-23 10:22 | shuehner | New Issue | |
2023-02-23 10:22 | shuehner | Assigned To | => Jorge Bravo |
2023-02-23 10:23 | shuehner | Relationship added | related to 0049434 |
2023-02-23 10:23 | shuehner | Relationship added | caused by 0050829 |
2023-02-23 10:23 | shuehner | Note Added: 0146906 | |
2023-02-23 10:45 | hgbot | Note Added: 0146909 | |
2023-02-23 10:46 | shuehner | Note Deleted: 0146909 | |
2023-02-23 10:47 | hgbot | Note Added: 0146910 | |
2023-02-23 10:47 | shuehner | Note Deleted: 0146910 | |
2023-02-27 18:24 | hgbot | Note Added: 0147061 | |
2023-02-28 09:35 | hgbot | Resolution | open => fixed |
2023-02-28 09:35 | hgbot | Status | new => closed |
2023-02-28 09:35 | hgbot | Note Added: 0147091 | |
2023-02-28 09:35 | hgbot | Note Added: 0147092 | |
2023-02-28 09:35 | aferraz | Assigned To | Jorge Bravo => shuehner |