Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0049433 | Openbravo ERP | A. Platform | public | 2022-05-30 07:56 | 2022-09-04 23:50 |
|
| Reporter | alostale | |
| Assigned To | Triage Platform Base | |
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | PR22Q4 | Fixed in Version | PR22Q4 | |
| Merge Request Status | approved |
| Review Assigned To | |
| OBNetwork customer | OBPS |
| Web browser | |
| Modules | Core |
| Support ticket | |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0049433: JDK19 deprecates Locale(String, String) constructor - core |
| Description | 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.
|
| Steps To Reproduce | Compile using JDK19 (tested with ea24):
The constructor Locale(String, String) is deprecated since version 19 HttpSecureAppServlet.java /openbravo/src/org/openbravo/base/secureApp line 1209 Java Problem
The constructor Locale(String, String) is deprecated since version 19 JasperProcess.java /openbravo/src/org/openbravo/erpCommon/ad_process line 80 Java Problem
The constructor Locale(String, String) is deprecated since version 19 ReportManager.java /openbravo/src/org/openbravo/erpCommon/utility/reporting line 229 Java Problem
|
| 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 | Localization Pack: Spain | JDK19 deprecates Locale(String, String) constructor - splp | | blocks | feature request | 0049432 | | new | Triage Platform Base | Openbravo ERP | Support JDK19 |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2022-05-30 07:56 | alostale | New Issue | |
| 2022-05-30 07:56 | alostale | Assigned To | => Triage Platform Base |
| 2022-05-30 07:56 | alostale | OBNetwork customer | => No |
| 2022-05-30 07:56 | alostale | Modules | => Core |
| 2022-05-30 07:56 | alostale | Triggers an Emergency Pack | => No |
| 2022-05-30 07:59 | alostale | Proposed Solution updated | |
| 2022-05-30 08:03 | alostale | Relationship added | blocks 0049432 |
| 2022-05-30 08:05 | alostale | Issue cloned | 0049434 |
| 2022-05-30 08:07 | alostale | Relationship added | related to 0049434 |
| 2022-05-30 08:08 | alostale | Summary | JDK19 deprecates Locale(String, String) constructor => JDK19 deprecates Locale(String, String) constructor - core |
| 2022-06-23 13:15 | alostale | Target Version | => PR22Q4 |
| 2022-07-29 13:28 | shuehner | OBNetwork customer | No => OBPS |
| 2022-07-29 13:28 | shuehner | Note Added: 0139727 | |
| 2022-08-17 21:02 | hgbot | Merge Request Status | => open |
| 2022-08-17 21:02 | hgbot | Note Added: 0140210 | |
| 2022-09-04 23:50 | hgbot | Merge Request Status | open => approved |
| 2022-09-04 23:50 | hgbot | Note Added: 0140654 | |
| 2022-09-04 23:50 | hgbot | Resolution | open => fixed |
| 2022-09-04 23:50 | hgbot | Status | new => closed |
| 2022-09-04 23:50 | hgbot | Fixed in Version | => PR22Q4 |
| 2022-09-04 23:50 | hgbot | Note Added: 0140655 | |